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

testAsyncModeWithParallelGateway fails when ActionNode is the last node executed in the parallel gateway

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.23.0.Final
    • Fix Version/s: 7.26.0.Final
    • Component/s: KieServer
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      execute mvn clean install -Dtest=AsyncContinuationSupportTest
      and check that the sequence is:
      Script Task-1
      Executing work item WorkItem 1 [name=Rest, state=0, processInstanceId=1, parameters

      {Method=GET, TaskName=Rest, Url=https://www.google.com}

      ]
      Script Task-2

      Show
      execute mvn clean install -Dtest=AsyncContinuationSupportTest and check that the sequence is: Script Task-1 Executing work item WorkItem 1 [name=Rest, state=0, processInstanceId=1, parameters {Method=GET, TaskName=Rest, Url=https://www.google.com} ] Script Task-2
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      In the testAsyncModeWithParallelGateway, when the sequence in the gateway is:
      WorkItemHandler (REST call) -> ActionNode (Task Script-2)
      test fails, because it's not triggered the next node after Join.

      After finishing ActionNode (Task Script-2), the JoinNode (NodeInstanceImpl) returns false at checkAllActivated method, because it doesn't keep the previous result at the triggers map.

      So, even when triggers map was populated with (6,1) in the execution of the WorkItemHandler, this is not present in this instance of the JoinNode.

      This was not failing in previous versions of jbpm (i.e., 7.18.x)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                elguardian Enrique González Martínez
                Reporter:
                gonzalomf Gonzalo Muñoz Fernández
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: