There is a main process with a multiple instances node which contains a reusable subprocess. The main process waits for all subprocesses to complete.
The subprocess contains a human task which allows interaction. What I like to do is to add programmatically a subprocess to the multiple instances in the main process while the main process waits for completion of all subprocesses so that the main process also waits for the completion of this newly created subprocess before going on.
I am able to start the new subprocess but how to let the main process know to wait for the completion of this subprocess, too?