3 Replies Latest reply on May 4, 2015 9:30 AM by clp207

    jBPM 6 Reusable Subprocess Deployment

    clp207

      It appears that when a parent process calls a reusable child sub process, the child sub process is deployed as part of the parent deployment. This means that the same child subprocess could be deployed many times if it is included in multiple parent projects.

       

      Is there any way for parent processes to call an already deployed child process and not have the child process deployed multiple times?

        • 1. Re: jBPM 6 Reusable Subprocess Deployment
          frenky1983

          I think that reusable subprocess is like a maven artifact.

          if you need whatever library in your project you must deploy them in your project, so if a process need a reusable subprocess you must deploy the subprocess.

           

          Other masterly would comment this post and light up our doubts

           

          • 2. Re: jBPM 6 Reusable Subprocess Deployment
            swiderski.maciej

            it's pretty much how Francesco described, to be able to call subprocess (as reusable) it must be part of the same deployment (either directly placed in project or brought in by dependencies). Either way it must exist in the same kieBase otherwise engine won't find it. Alternative way would be to utilize REST api of the workbench to call any process via remote (RESTWorkItemHandler) so you remove the direct dependency between processes.

             

            HTH

            • 3. Re: jBPM 6 Reusable Subprocess Deployment
              clp207

              Maciej, thanks for the information!

               

              If using the RESTWorkItemHandler to start a remote process, how would the remote process call back to the calling process when it was done?