cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO execute serviceTask asynchronous?

ray1
Champ in-the-making
Champ in-the-making
hello everyone,
   I met a problem. I tried to use the serviceTask node to do webservice request,when the webservice throw a timeout exception ,the system would execute this serviceTask again. I want to set a interval between the first execution and the second execution, so I chose the sentence "thread.sleep()" to implement it.When the thread is sleeping,the main thread will pause until the second execution complete,but this will cause a bad user experience. So,I need some help.Does anyone know whethere there are some functions to set the webserviceTask on the pause status?
1 REPLY 1

mmaker1234
Champ in-the-making
Champ in-the-making
Hello ray,

What about the following "construction":
- an ErrorBoundaryEvent attached to the webservice request ServiceTask;
- a TimerCatchingEvent, which to wait for some (predefined at design time) time;
- the ErrorBoundaryEvent transitions to the TimerCatchingEvent;
- the TimerCatchingEvent transitions back to the webservice request ServiceTask
?