cancel
Showing results for 
Search instead for 
Did you mean: 

Continue flow in Multiinstance task if one user has completed the task

nik10_mah
Champ in-the-making
Champ in-the-making
Hi,

I have a multinstance task that is assigned to multiple users but as we know it works in parallel mode i.e flow will be move forward only if all the users have completed their tasks.

But what I want is if atleast one user completes his task the flow moves forward to next task.

I have attached a test case and bpmn20.xml file.

What I want is if any of the user have completed the task with id multiTask the flow should move forward to  approval task.
3 REPLIES 3

trademak
Star Contributor
Star Contributor
It's possible to set a completion condition on a multi instance task. So if you set an expression like ${nrOfCompletedInstances > 0} it would complete the multi instance task when 1 user has completed a task.

Best regards,

nik10_mah
Champ in-the-making
Champ in-the-making
Thanks. It id worked but it is also removing the other tasks under multiinstance which are yet to be completed. I also want other tasks to remain untill the process is completed..

Thanks.

trademak
Star Contributor
Star Contributor
That's not how a multi instance task works. If you would like this behaviour you would need to define a multi instance sub process with a user task and the next steps you would want to execute in a multi instance fashion.

Best regards,