BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Execute service call and wait for response

    Posted 22 days ago

    i have the following issue: im calling a service on an onClick event through the "service call" component but the script keeps executing after calling the service, it does not wait for the service response. how can i stop execution of the onClick event until the service returns a result? 

    i tried calling the service through a configuration option in my view but if i take that approach ill have to move a lot of logic to the service call which im not very keen on.

    any help would be appreciated. 

    cheers



    ------------------------------
    jhon wick
    ------------------------------


  • 2.  RE: Execute service call and wait for response

    Posted 19 days ago

    Calling a service is a long-running operation that should not block the UI.  Normally, you'd add any code that requires the result to the On result event of the service instance, such as:



    ------------------------------
    Grant Taylor
    ------------------------------