Hi,
I have trying to call an activity through parallel multiple instances:
diagram_1.bpmn (3.0 KB)
It successfully calling the activity with the number of elements in the collection, however, it’s called in a sequential matter and not parallel.
I have tried to tick the ‘Multi Instance Asynchronous Before’ or just Asynchronous Before (also after) without success.
Is there something wrong I’m doing?
I have inside the call activity some sleep to see the actual behaviour.
Thanks from advance.
There 2 phases in multi instance activity.
1 phase is creation new bmpn processes. It is done in sequence.
2 phase is bmpn execution. It can be done in parallel.
But first phase ends not on start event of child process. It ends on first transaction point of child process.
If there arent any transactions point inside child process, process will be executed in phase 1.
So just add async before on child process start event and let job executor threads execute many processes in parallel.
I managed to figure it out, for whoever encounter this:
You need to tick the Multi Instance Asynchronous after
and on the calling activity start event on the Async before