Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4745

[GSS](6.4.z) Deactivated deployments are temporarily active during business central startup in BPM Suite 6.4.x

XMLWordPrintable

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

    • CR2
    • 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.

      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'
      

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

              Created:
              Updated:
              Resolved: