cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Modeler - Subprocess loops

martin11175
Champ in-the-making
Champ in-the-making
Hey there!

I'm relatively new to Activiti and BPMN in general and am currently working on making a relatively simple task whereby a Java service gets a list of items and then feeds these into a subprocess loop where the items are worked on individually.

This works perfectly when feeding into individual tasks but I can't figure it out when working with a subprocess as in the Activiti Modeler there aren't any options for collections and element variables or any ways to define the end of a "standard" loop.
I've tried getting the subprocess start element to use the loopCounter to iterate through a collection as part of the form properties, but they don't seem to get instantiated.
Is there something I'm missing, or does this have to be coded in XML (I have seen examples around) as opposed to using the modeler?

Any help would be greatly appreciated.

Thanks,

Martin
3 REPLIES 3

martin11175
Champ in-the-making
Champ in-the-making
UPDATE: Having exported the process model and edited the XML to add the multi-instance collection and element variable information manually I can confirm that this will run in Activiti. This information still does not show in the Activiti Modeler though, so I am presuming that it is not possible to create this functionality through the modeler.

trademak
Star Contributor
Star Contributor
In the Designer this is supported so that's definitely a valid use case.
Could you raise a JIRA?

Thanks,

martin11175
Champ in-the-making
Champ in-the-making
Done. Thanks for getting back to me and keep up the good work!