cancel
Showing results for 
Search instead for 
Did you mean: 

Multi instance completion condition behaviour

b_schnarr
Champ in-the-making
Champ in-the-making
Hello at all,

I read in the Activiti documentation the following: when the completion expression evaluates to true, all remaining instances are destroyed]/b] and the multi-instance activity ends, continuing the process.

I have the use case, that subsequent completions of the remaining instances are inconsequential (see workflow pattern 34: http://www.workflowpatterns.com/patterns/control/new/wcp34.php)

Lets say we have a multi instance loop cardinality of M.
My question is: is there a way to complete N of M instances within a Multi Instance task, continue with the process, but the remaining M-N instances WON´T BE DESTROYED so that the completion of those remaining instances may occur or not?

Maybe with a signal event or something?

Any ideas are welcome.

Thanks and best regards
Ben
3 REPLIES 3

b_schnarr
Champ in-the-making
Champ in-the-making

trademak
Star Contributor
Star Contributor
Hi Ben,

The only we to implement this behaviour would be to add a parallel gateway and signal the other path when a certain amount of multi instance loops have been completed.

Best regards,

b_schnarr
Champ in-the-making
Champ in-the-making
Hi Tijs,

thanks for your feedback. I already thought about this way of solving it. But how can I fire that signal while iterating through the multi instance task?