0 Replies Latest reply on Jul 9, 2013 10:28 AM by micste

    Programmatically add instance to multiple instances with reusable subprocess?

    micste Newbie

      Using jBPM 5.4.

      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?

      mult.jpg