I have a Collection(List) of values and the size of the collection is dynamic(not fixed size).
I want to create a new process instance for every value in the collection.
So How to create multiple process instances for dynamic list values?
I have a Collection(List) of values and the size of the collection is dynamic(not fixed size).
I want to create a new process instance for every value in the collection.
So How to create multiple process instances for dynamic list values?
Use subProcess to iterate through your collection
Do we have to code the iteration logic in some service task before entering into subprocess?
No, just create a collection variable and use it as a collection property of subprocess element. I prepared an example process for you:
MulitVarExample.bpmn (7.0 KB)
Get some data prepares a collection and store as variable named customData
. Then this collection is used in a sub-process which consist of 2 simple tasks. Hope it helps you understand the idea.