Create subprocess instance in ongoing multi-instance call activity

I have a multi-instance call activity that loops over a collection of participants.
Is there a way I can add from a plugin a subprocess instance as part of an already created super-process instance ? This is in order to add another participant

Hi @kawtar.marref,

I’m not aware of any plugin that can do this. The number MI-instances is set in stone when the first instance starts. To add more, you would need to restart the MI-Activity. Consider the following:

2 Likes

Hello, thank you for your answer but I don’t understand how we can restart the MI-activity, I would really appreciate if you could explain a bit more.

Hi,
I did not incorporate a restart – I just added a new activity “Do for new participant”, that is started instead. If you want to restart, you should use an interrupting boundary event and loop back to the MI-Task.
If a new participant is added, the message event is triggered. Consequently, the MI-Task is canceled. The flow loops back to the MI-Task and starts it again:
image

1 Like

Thanks alot, the first answer was exactly what I was looking for!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.