cancel
Showing results for 
Search instead for 
Did you mean: 

muti-instance user tasks need to proceed based on condition

hguser
Champ in-the-making
Champ in-the-making
I have a requirement where multi-instance user tasks will be created for a given list of users. I have done this easily with for-each. Now I need to proceed the flow as soon as 1 user completes his/her task without waiting for all the users to complete it. How can i do this? I tried adding inclusive gateway but regardless of the condition the execution will move to the next task only once all users accept their user tasks.
3 REPLIES 3

hguser
Champ in-the-making
Champ in-the-making
Please note I know the existence of completionCondition of multi instance activity. But if i use this, all other user tasks instances will be destroyed right? What I need is when one user completes the task to move ahead in the process, leaving other multi user tasks active. Because later on those other users should also be able to complete their tasks.

warper
Star Contributor
Star Contributor
Hi hguser!
Split process with parallelgateway, one execution will proceed usertasks, another will wait for some specified signal. In multi-instance after completion of user task send async signal to this process, it will be handled by another execution and it will be able to continue flow.

hguser
Champ in-the-making
Champ in-the-making
Hi Warper,

Thanks for your answer!