1 Reply Latest reply on Dec 26, 2019 8:21 AM by abhijithumbe

    JBPM post container creation event

    ilesad7
      0

       

       

      I was wondering if there is a way to execute a bloc of code post container creation on JBPM (and so, before any process creation)

      I'm calling the URL : http://IP/kie-server/services/rest/server/config sending the payload to trigger the container creation :

      <script> 
           <create-container>
                <container container-id="process">
                     <release-id>
                          <group-id>group.id</group-id>
                          <artifact-id>group-id-process</artifact-id>
                          <version>1.0.0-SNAPSHOT</version>
                     </release-id>
                </container>
           </create-container>
      </script>

      I would like to execute a piece of code just after the container creation is complete. I'm using kie-api version : 6.5.0-FINAL, and so I don't think I can use : org.kie.server.services.api.StartupStrategy

      All the listeners that I found are related to the process/task and what I'm trying to execute should be done before the process creation.

      Is it possible ?

      Thank you