cancel
Showing results for 
Search instead for 
Did you mean: 

support for multiInstanceLoopCharacteristics

redwood7
Champ in-the-making
Champ in-the-making
I'm trying to figure out how to allow multiple user tasks (in parallel) where the process waits until all tasks are completed before continuing and number of tasks I need to create is defined at runtime.  It looks to me like in BPMN the <multiInstanceLoopCharacteristics isSequential="false"> construct is what I really need but that doesn't appear to be supported yet.

The use case for this is essentially after performing an initial review of a document the user selects several other users (displayed on a user task form) to perform their own review the next step should be that those users will review it in parallel, either approve or disapprove, and only once they're all completed proceed to the next step.

The only workaround I see is to not allow this situation and instead define an upper bound and have a fixed number of flows out of a parallel gateway.  Is there a better way to do this?  I've seen comments in previous posts about using a counter proccess variable to create a loop, but that would only work for sequential tasks.  Any idea when the multiInstanceLoopCharacteristics element will be supported?
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
The 'multinstanceLoopCharacteristics' is currently not prioritized to be implemented in the next months

A workaround could be to have a serviceTask that spawns tasks at runtime, but Ithat's just a wild idea.

walterjs
Champ in-the-making
Champ in-the-making
Something similar was implemented in jBPM4.4 with the for-each. It should not be too difficult to modify and refactor it to work in Activiti. I don't have a need for this right now, but I've used it so many times in the past that I'm sure it will come up again soon.