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

EventEmitter return wrong "task-status" : "Ready" instead "task-status" : "Reserved"

XMLWordPrintable

    • False
    • False
    • Release Notes
    • CR1
    • +
    • Hide

      0 - Copy the file "jbpm-event-emitters-elasticsearch-7.52.0.Final-redhat-00008.jar" inside lib.zip file /target folder. to the path -> /$JBOSS_HOME/standalone/deployments/kie-server.war/WEB-INF/lib

      1 - Create in RHPAM user marcell:redhat1!
      2 - Make deploy of the reproducer project. (space_Reproducer.zip)
      3- Execute the script: ./startProcess.sh
      4 - Execute the script: ./assignerUser.sh
      5 - Looking the server log you will see:

      ---------------------------------------------------------
      19:55:22,948 INFO [org.jbpm.event.emitters.elasticsearch.ElasticSearchEventEmitter] (default task-1) ***** Event 0, type TaskInstanceView: TaskInstance

      {id=1, name='Task', description='', status='Ready', actualOwner='controlleruser', processInstanceId=1, processId='Reproducer.Process', containerId='Reproducer_1.0.0-SNAPSHOT'}

      ---------------------------------------------------------

      status='Ready',

      if you execute the script : ./requestTask.sh you will receive

      -----------------------------------------------------------
      "task-status" : "Reserved",
      -----------------------------------------------------------

      This is the issue.

      Best Regards,
      Marcell Cruz

      Show
      0 - Copy the file "jbpm-event-emitters-elasticsearch-7.52.0.Final-redhat-00008.jar" inside lib.zip file /target folder. to the path -> /$JBOSS_HOME/standalone/deployments/kie-server.war/WEB-INF/lib 1 - Create in RHPAM user marcell:redhat1! 2 - Make deploy of the reproducer project. (space_Reproducer.zip) 3- Execute the script: ./startProcess.sh 4 - Execute the script: ./assignerUser.sh 5 - Looking the server log you will see: --------------------------------------------------------- 19:55:22,948 INFO [org.jbpm.event.emitters.elasticsearch.ElasticSearchEventEmitter] (default task-1) ***** Event 0, type TaskInstanceView: TaskInstance {id=1, name='Task', description='', status='Ready', actualOwner='controlleruser', processInstanceId=1, processId='Reproducer.Process', containerId='Reproducer_1.0.0-SNAPSHOT'} --------------------------------------------------------- status='Ready', if you execute the script : ./requestTask.sh you will receive ----------------------------------------------------------- "task-status" : "Reserved", ----------------------------------------------------------- This is the issue. Best Regards, Marcell Cruz
    • 2022 Week 11-13 (from Mar 14), 2022 Week 14-16 (from Apr 4), 2022 Week 17-19 (from Apr 25), 2022 Week 20-22 (from May 16), 2022 Week 23-25 (from Jun 6), 2022 Week 26-28 (from Jun 27), 2022 Week 29-31 (from Jul 18)

      Customer has a implementation of EventEmitter. when event is fired, it return status='Ready'. if you make a request to the endpoint of the task, it returns "task-status" : "Reserved".

        1. lib.zip
          2 kB
        2. script.zip
          1.0 kB
        3. space_Reproducer.zip
          74 kB

              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              rhn-support-mpessanh Marcell Pessanha Cruz
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: