Completion condition in Multi instance User Task

In service task I was fetching collection data [“Order1”,“Order2”,“Order2”,“Order3”,“Order4”,“Order5”] from Rest API. Now I was able to create five usertasks based on collection data by using multi-instance.

Now the user can complete the review for any number of orders. Let’s say out of 5 orders user is completing review for “Order1” and “Order2”. So if the user completes the review of Order1, that task should wait for until the Order2 gets completed. Once Order1 and Order2 was reviewed by User, then only it should reach last review task.

Can we acheive using this intermediate conditional catch event or completion condition in multi-instance or any other solution?

Hi @aravindhrs,

you would use a completion condition at the multi-instance task. For example:

<completionCondition>${nrOfCompletedInstances/nrOfInstances >= 0.6 }</completionCondition>

See the docs for details.

Best regards,
Philipp

3 Likes

Hi @Philipp_Ossler ,
I would like to check all my Task-6 & Task-4 is completed. Once those multi-instance (Task-6) & Task-4 completed I should create a Billing Sub process (Task-8). How can I do it using Conditional Event. Any suggestion from your side ?