cancel
Showing results for 
Search instead for 
Did you mean: 

Wait until the next UserTask after completing the current UserTask

mf
Confirmed Champ
Confirmed Champ
After completing the current UserTask, i want to be able to wait (block), until all intermediate non-UserTask activities are completed, and the next UserTask become active. How can i do that? For example:
1- Completing UserTask
2- Wait until service, script and rule tasks are completed
3- The next UserTask is active

[img=552x68]http://upload7.ir/imgs/2014-09/72637555479539062865.png[/img]


taskService.complete(taskId);
//wait until all non-usertasks done and next UserTask become active ????


Thanks
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Try to debug taskService.complete(taskId);. Control is given back to this call after all service, script rules…. are evaluated in the case of sync call. So in the case when there is no asynch task in the flow you should get control to your class again after all tasks execution.

Regards
Martin