Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-10043

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.71.0.Final
    • None
    • None
    • None
    • False
    • False
    • NEW
    • NEW
    • 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

    Description

      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".

      Attachments

        Issue Links

          Activity

            People

              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: