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

Stunner - bpmndi:BPMNShape id of intermediateCatchEvent is always set to 'shape_null'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.48.0.Final, 7.52.0.Final
    • Designer
    • False
    • False
    • NEW
    • NEW
    • undefined
    • Hide
      1. Create a process with at least two intermediate catching events. For example:
        • Start signal -> Catching Signal event -> Catch message event -> End event
        • [Optional] Set the signal and message for the events to avoid redundant messages in log.
      2. [Optional] Set Data Assignments for catching events to avoid redundant messages is server.log
      3. Save the process and check server.log.
      4. Download and check the bpmn file.

      Actual result

      The process contains 2 intermediate catching events with the same id: "shape_null".
      As a result, Server.log contains error messages.

      Expected result

      The events have unique ids.
      No error messages are shown in server.log

      Show
      Create a process with at least two intermediate catching events. For example: Start signal -> Catching Signal event -> Catch message event -> End event [Optional] Set the signal and message for the events to avoid redundant messages in log. [Optional] Set Data Assignments for catching events to avoid redundant messages is server.log Save the process and check server.log. Download and check the bpmn file. Actual result The process contains 2 intermediate catching events with the same id: "shape_null". As a result, Server.log contains error messages. Expected result The events have unique ids. No error messages are shown in server.log
    • 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th)

      When creating intermediateCatchEvent, such as intermediate signal catch event, bpmndi:BPMNShape id of intermediateCatchEvent is always set to 'shape_null' .

      e.g.

        <bpmn2:process id="case03019096.test" drools:packageName="com.example.case03019096" drools:version="1.0" drools:adHoc="false" name="test" isExecutable="true" processType="Public">
          <bpmn2:intermediateCatchEvent id="_14BBCB9F-DFF1-4BA9-97A5-4EDACD4556D0">
            <bpmn2:compensateEventDefinition id="_xHnhsAYTEeyUF8ahJoiudA"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_D27A8CED-DC75-4003-ADA4-496FEC686D5B">
            <bpmn2:conditionalEventDefinition id="_xHnhsQYTEeyUF8ahJoiudA">
              <bpmn2:condition xsi:type="bpmn2:tFormalExpression" id="_xHnhsgYTEeyUF8ahJoiudA" language="http://www.jboss.org/drools/rule"/>
            </bpmn2:conditionalEventDefinition>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_8B3555FF-B886-4C3A-B33E-72F84FE4A5EE">
            <bpmn2:escalationEventDefinition id="_xHnhswYTEeyUF8ahJoiudA"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_501DAB04-B7F2-48C3-9DAD-E824842F82F7">
            <bpmn2:errorEventDefinition id="_xHnhtAYTEeyUF8ahJoiudA" errorRef="_4A1A901C-AF75-4170-9D6A-1950E6B02443"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_BD2DDB46-13B0-4828-A127-B59E29C97431">
            <bpmn2:timerEventDefinition id="_xHnhtQYTEeyUF8ahJoiudA"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_B511EB08-4272-4A2F-A414-996B9604C481">
            <bpmn2:signalEventDefinition id="_xHnhtgYTEeyUF8ahJoiudA"/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_B0A5E890-3091-4DCF-9BB8-E787715CB2F1">
            <bpmn2:linkEventDefinition id="_xHnhtwYTEeyUF8ahJoiudA" name=""/>
          </bpmn2:intermediateCatchEvent>
          <bpmn2:intermediateCatchEvent id="_0E046D4F-634E-40AA-8046-7799F29D0E68">
            <bpmn2:messageEventDefinition id="_xHnhuAYTEeyUF8ahJoiudA"/>
          </bpmn2:intermediateCatchEvent>
        </bpmn2:process>
        <bpmndi:BPMNDiagram id="_xHnhuQYTEeyUF8ahJoiudA">
          <bpmndi:BPMNPlane id="_xHnhugYTEeyUF8ahJoiudA" bpmnElement="case03019096.test">
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_0E046D4F-634E-40AA-8046-7799F29D0E68">
              <dc:Bounds height="56.0" width="56.0" x="468.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_B0A5E890-3091-4DCF-9BB8-E787715CB2F1">
              <dc:Bounds height="56.0" width="56.0" x="654.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_B511EB08-4272-4A2F-A414-996B9604C481">
              <dc:Bounds height="56.0" width="56.0" x="569.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_BD2DDB46-13B0-4828-A127-B59E29C97431">
              <dc:Bounds height="56.0" width="56.0" x="367.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_501DAB04-B7F2-48C3-9DAD-E824842F82F7">
              <dc:Bounds height="56.0" width="56.0" x="747.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_8B3555FF-B886-4C3A-B33E-72F84FE4A5EE">
              <dc:Bounds height="56.0" width="56.0" x="840.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_D27A8CED-DC75-4003-ADA4-496FEC686D5B">
              <dc:Bounds height="56.0" width="56.0" x="1037.0" y="72.0"/>
            </bpmndi:BPMNShape>
            <bpmndi:BPMNShape id="shape_null" bpmnElement="_14BBCB9F-DFF1-4BA9-97A5-4EDACD4556D0">
              <dc:Bounds height="56.0" width="56.0" x="941.0" y="72.0"/>
            </bpmndi:BPMNShape>
          </bpmndi:BPMNPlane>
        </bpmndi:BPMNDiagram>
      

      Due to that, if there are more than one intermediateCatchEvent in the process,
      the exception org.drools.core.xml.ExtensibleXmlParser like the following happens when saving it or building it.

      11:11:03,124 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 1) Node Info: id:shape_null name:
      Parser message: (null: 64, 93): cvc-id.2: There are multiple occurrences of ID value 'shape_null'.
      11:11:03,124 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 1) Node Info: id:shape_null name:
      Parser message: (null: 64, 93): cvc-attribute.3: The value 'shape_null' of attribute 'id' on element 'bpmndi:BPMNShape' is not valid with respect to its type, 'ID'.
      

      This started to happen from 7.10.0(7.48.0.Final-redhat-00004), but did not happen with 7.9.1(7.44.0.Final-redhat-00006) or before.
      This also does not happen with intermediateThrowEvent.

            josephblt Wagner Lemos (Inactive)
            rhn-support-hmiura Hiroko Miura
            Lubomir Terifaj Lubomir Terifaj
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: