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

multiInstanceLoopCharacteristics in activities (workItems) cause NPE if output collection is not specified

    Details

    • Sprint:
      2019 Week 17-19
    • Story Points:
      3
    • Steps to Reproduce:
      Hide

      Simple bpmn2 with Start Node, Human Task and End Node.

      If HumanTask has multiInstanceLoopCharacteristics with Input Collection specified but no Output Collection, the server refuse to deploy bpmn2.

      Show
      Simple bpmn2 with Start Node, Human Task and End Node. If HumanTask has multiInstanceLoopCharacteristics with Input Collection specified but no Output Collection, the server refuse to deploy bpmn2.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Set anything not empty in the target as output collection

      Show
      Set anything not empty in the target as output collection
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      The code managing multiInstanceLoopCharacteristics in TaskHandler.java:

      if ("multiInstanceLoopCharacteristics".equals(nodeName))
      ...

      cause the call to method adjustOutMapping of the workItemNode passing the forEachNode.getOutputCollectionExpression .

      If this is null the method cause NPE

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tsurdilovic Tihomir Surdilovic
                Reporter:
                paolo.cappuccini Paolo Cappuccini
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: