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

ExtensibleXmlParser ERROR due to duplicate ID value 'shape_null' if there are multiple intermediateCatchEvent

    XMLWordPrintable

Details

    • False
    • False
    • CR1
    • ?
    • 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
        • 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 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), 2022 Week 02-04 (from Jan 10)

    Description

      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, such as intermediate signal catch event, 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'.
      

      But Build & Deploy with this process succeed and signal works without problem even though this ERROR appears.

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: