Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-276

Deactivated deployments are temporarily active during business central startup in BPM Suite 6.4.x

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.GA
    • 6.x.x
    • Business Central
    • BPM Suite 6.4.x
      Using Rest API to start a new process instance

    • ER1
    • Hide

      1. deactivate a deployment unit in business-central that contains a process definition;
      2. in order to reproduce it, I created a loop script to run during bpm suite startup... since it takes only a second to load jar and deactivate it (see loop.sh). Otherwise, you would need a deployment unit large enough in size to take several seconds to load during startup;
      3. restart bpm suite server and then start loop.sh script;
      4. it would be good to have other deactivated projects in the same instance... so it is going to be easier to reproduce as it will take some time to load all of them.

      Show
      1. deactivate a deployment unit in business-central that contains a process definition; 2. in order to reproduce it, I created a loop script to run during bpm suite startup... since it takes only a second to load jar and deactivate it (see loop.sh). Otherwise, you would need a deployment unit large enough in size to take several seconds to load during startup; 3. restart bpm suite server and then start loop.sh script; 4. it would be good to have other deactivated projects in the same instance... so it is going to be easier to reproduce as it will take some time to load all of them.
    • 2017 Week 26-27

      During BPM Suite server startup, it is possible to start a process from a "deactivated" deployment in a short period of time by using rest call. Please see part of the log which shows that a jar project is loaded and then deactivated:

      13:08:35,584 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 4) KieModule was added: ZipKieModule[releaseId=org.acme:ticket-support:1.5,file=/home/ajuricic/.m2/repository/org/acme/ticket-support/1.5/ticket-support-1.5.jar]
      ...
      13:08:36,244 INFO  [org.jbpm.kie.services.impl.store.DeploymentSynchronizer] (EJB default - 4) Deployment unit org.acme:ticket-support:1.5 deactivated successfully
      13:08:36,293 INFO  [stdout] (http-127.0.0.1:8080-3) hi
      

      Between these tasks (loading jar and deactivating it), a process from that project can be started by using rest call as follows:

      curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user user:password 'http://localhost:8080/business-central/rest/runtime/deployment_id/process/process_id/start'
      

        1. loop.sh
          0.3 kB
          Amana Juricic

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-ajuricic Amana Juricic
              Jan Hrcek Jan Hrcek (Inactive)
              Jan Hrcek Jan Hrcek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: