Create a new instance of a subprocess after process instance variable updating

In my process, I have a variable ‘userList’ which contains a list [{‘name: userA’}]
In my process, I want to recreate my subprocess for all user of my list.
But, I want to recreate this subprocess also when I updated my list (process variable), and the new subprocess will run in parallel that the subprocess which already runs, and not when the first process is completed.

Does somebody know a solution?

That’s not possible through the model, however through the API you can add new elements to the multi instance by calling runtimeService#addMultiInstanceExecution when your list changes.

1 Like