Activiti
  1. Activiti
  2. ACT-838

parsing support for text notation

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 5.5
    • Fix Version/s: Sooner
    • Component/s: Engine
    • Labels:
      None
    • Number of attachments :
      0

      Description

      text notation and associated sequence flow must be ignored by engine while parsing.

        Issue Links

          Activity

          Hide
          Joram Barrez added a comment -

          Normally, the engine neglects anything it doesnt recognize. Doesn't that work for text annotations?

          Could you attach a failing test case?

          Show
          Joram Barrez added a comment - Normally, the engine neglects anything it doesnt recognize. Doesn't that work for text annotations? Could you attach a failing test case?
          Hide
          Simone Tognozzi added a comment -

          This is the exceprion that i catch

          org.activiti.engine.ActivitiException: Invalid reference in 'bpmnElement' attribute, activity _9not found | prova.bpmn20.xml | line 79 | column 59
          Invalid reference in 'bpmnElement' attribute, activity _11not found | prova.bpmn20.xml | line 85 | column 61
          Invalid reference in 'bpmnElement' attribute, sequenceFlow _14not found | prova.bpmn20.xml | line 119 | column 99
          Invalid reference in 'bpmnElement' attribute, sequenceFlow _10not found | prova.bpmn20.xml | line 126 | column 99

          org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
          org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:172)
          org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81)
          org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:37)
          org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:39)

          And this is my xml file

          <?xml version="1.0" encoding="WINDOWS-1252" standalone="yes"?>
          <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.yaoqiang.org/bpmn/definitions/_1307118757527" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Yaoqiang BPMN Editor" exporterVersion="2.0" expressionLanguage="http://www.w3.org/1999/XPath" id="_1307118757527" name="" targetNamespace="http://www.yaoqiang.org/bpmn/definitions/_1307118757527" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://bpmn.yaoqiang.org/schemas/BPMN20.xsd">
          <process id="_1" isClosed="false" isExecutable="true" name="palissonatura" processType="Private">
          <startEvent id="_2" isInterrupting="true" name="Start Event" parallelMultiple="false">
          <outgoing>_13</outgoing>
          </startEvent>
          <task completionQuantity="1" id="_12" isForCompensation="false" name="Primo task" startQuantity="1">
          <extensionElements>
          <activiti:executionListener class="ListnerProva" event="start">
          <activiti:field name="taskName">
          <activiti:string>primotask</activiti:string>
          </activiti:field>
          </activiti:executionListener>
          </extensionElements>
          <incoming>_13</incoming>
          <outgoing>_5</outgoing>
          </task>
          <sequenceFlow id="_13" sourceRef="_2" targetRef="_12"/>
          <dataObject id="DO_1" isCollection="false" name="Data Object"/>
          <task completionQuantity="1" id="_3" isForCompensation="false" name="Secondo Task" startQuantity="1">
          <incoming>_5</incoming>
          <outgoing>_6</outgoing>
          </task>
          <task completionQuantity="1" id="_4" isForCompensation="false" name="Terzo Task" startQuantity="1">
          <extensionElements>
          <activiti:executionListener class="ListnerProva" event="start">
          <activiti:field name="taskName">
          <activiti:string>terzoTask</activiti:string>
          </activiti:field>
          </activiti:executionListener>
          <activiti:executionListener class="EndProcesListner" event="end"/>
          </extensionElements>
          <incoming>_6</incoming>
          <outgoing>_8</outgoing>
          </task>
          <sequenceFlow id="_5" sourceRef="_12" targetRef="_3"/>
          <sequenceFlow id="_6" sourceRef="_3" targetRef="_4"/>
          <endEvent id="_7" name="End Event">
          <incoming>_8</incoming>
          </endEvent>
          <sequenceFlow id="_8" sourceRef="_4" targetRef="_7"/>
          <textAnnotation id="_9" textFormat="text/plain"/>
          <association associationDirection="None" id="_10" sourceRef="_9" targetRef="_12"/>
          <textAnnotation id="_11" textFormat="text/plain"/>
          <association associationDirection="None" id="_14" sourceRef="_11" targetRef="_4"/>
          </process>
          <bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=841.824;height=595.224" id="Yaoqiang-_0" name="Yaoqiang BPMN Diagram 1">
          <bpmndi:BPMNPlane bpmnElement="_1">
          <bpmndi:BPMNShape bpmnElement="_2" id="Yaoqiang-_2">
          <dc:Bounds height="32.0" width="32.0" x="35.0" y="90.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="58.72727272727272" x="71.63636363636364" y="179.90378639914772"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_12" id="Yaoqiang-_12">
          <dc:Bounds height="55.0" width="85.0" x="127.0" y="78.5"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="59.636363636363626" x="189.6818181818182" y="147.90378639914772"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_3" id="Yaoqiang-_3">
          <dc:Bounds height="55.0" width="85.0" x="272.0" y="78.5"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="77.81818181818181" x="325.59090909090907" y="147.90378639914772"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_4" id="Yaoqiang-_4">
          <dc:Bounds height="55.0" width="85.0" x="417.0" y="78.5"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="60.54545454545453" x="479.2272727272728" y="147.90378639914772"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_7" id="Yaoqiang-_7">
          <dc:Bounds height="32.0" width="32.0" x="562.0" y="90.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="56.0" x="600.0" y="179.90378639914772"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_9" id="Yaoqiang-_9">
          <dc:Bounds height="55.0" width="85.0" x="130.0" y="200.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="6.0" x="180.0" y="269.4037863991477"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNShape bpmnElement="_11" id="Yaoqiang-_11">
          <dc:Bounds height="55.0" width="85.0" x="425.0" y="195.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="19.82879083806818" width="6.0" x="475.0" y="264.4037863991477"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNShape>
          <bpmndi:BPMNEdge bpmnElement="_13" id="Yaoqiang-_13" sourceElement="_2" targetElement="_12">
          <di:waypoint x="50.0" y="105.0"/>
          <di:waypoint x="150.0" y="120.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="_8" id="Yaoqiang-_8" sourceElement="_4" targetElement="_7">
          <di:waypoint x="465.0" y="115.0"/>
          <di:waypoint x="580.0" y="120.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="_6" id="Yaoqiang-_6" sourceElement="_3" targetElement="_4">
          <di:waypoint x="320.0" y="110.0"/>
          <di:waypoint x="480.0" y="115.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="_5" id="Yaoqiang-_5" sourceElement="_12" targetElement="_3">
          <di:waypoint x="170.0" y="105.0"/>
          <di:waypoint x="345.0" y="120.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="_14" id="Yaoqiang-_14" sourceElement="_11" targetElement="_4">
          <di:waypoint x="470.0" y="225.0"/>
          <di:waypoint x="465.0" y="120.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          <bpmndi:BPMNEdge bpmnElement="_10" id="Yaoqiang-_10" sourceElement="_9" targetElement="_12">
          <di:waypoint x="175.0" y="230.0"/>
          <di:waypoint x="170.0" y="125.0"/>
          <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
          </bpmndi:BPMNLabel>
          </bpmndi:BPMNEdge>
          </bpmndi:BPMNPlane>
          </bpmndi:BPMNDiagram>
          </definitions>

          Show
          Simone Tognozzi added a comment - This is the exceprion that i catch org.activiti.engine.ActivitiException: Invalid reference in 'bpmnElement' attribute, activity _9not found | prova.bpmn20.xml | line 79 | column 59 Invalid reference in 'bpmnElement' attribute, activity _11not found | prova.bpmn20.xml | line 85 | column 61 Invalid reference in 'bpmnElement' attribute, sequenceFlow _14not found | prova.bpmn20.xml | line 119 | column 99 Invalid reference in 'bpmnElement' attribute, sequenceFlow _10not found | prova.bpmn20.xml | line 126 | column 99 org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186) org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:172) org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:81) org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:37) org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:39) And this is my xml file <?xml version="1.0" encoding="WINDOWS-1252" standalone="yes"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.yaoqiang.org/bpmn/definitions/_1307118757527" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exporter="Yaoqiang BPMN Editor" exporterVersion="2.0" expressionLanguage="http://www.w3.org/1999/XPath" id="_1307118757527" name="" targetNamespace="http://www.yaoqiang.org/bpmn/definitions/_1307118757527" typeLanguage="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL http://bpmn.yaoqiang.org/schemas/BPMN20.xsd "> <process id="_1" isClosed="false" isExecutable="true" name="palissonatura" processType="Private"> <startEvent id="_2" isInterrupting="true" name="Start Event" parallelMultiple="false"> <outgoing>_13</outgoing> </startEvent> <task completionQuantity="1" id="_12" isForCompensation="false" name="Primo task" startQuantity="1"> <extensionElements> <activiti:executionListener class="ListnerProva" event="start"> <activiti:field name="taskName"> <activiti:string>primotask</activiti:string> </activiti:field> </activiti:executionListener> </extensionElements> <incoming>_13</incoming> <outgoing>_5</outgoing> </task> <sequenceFlow id="_13" sourceRef="_2" targetRef="_12"/> <dataObject id="DO_1" isCollection="false" name="Data Object"/> <task completionQuantity="1" id="_3" isForCompensation="false" name="Secondo Task" startQuantity="1"> <incoming>_5</incoming> <outgoing>_6</outgoing> </task> <task completionQuantity="1" id="_4" isForCompensation="false" name="Terzo Task" startQuantity="1"> <extensionElements> <activiti:executionListener class="ListnerProva" event="start"> <activiti:field name="taskName"> <activiti:string>terzoTask</activiti:string> </activiti:field> </activiti:executionListener> <activiti:executionListener class="EndProcesListner" event="end"/> </extensionElements> <incoming>_6</incoming> <outgoing>_8</outgoing> </task> <sequenceFlow id="_5" sourceRef="_12" targetRef="_3"/> <sequenceFlow id="_6" sourceRef="_3" targetRef="_4"/> <endEvent id="_7" name="End Event"> <incoming>_8</incoming> </endEvent> <sequenceFlow id="_8" sourceRef="_4" targetRef="_7"/> <textAnnotation id="_9" textFormat="text/plain"/> <association associationDirection="None" id="_10" sourceRef="_9" targetRef="_12"/> <textAnnotation id="_11" textFormat="text/plain"/> <association associationDirection="None" id="_14" sourceRef="_11" targetRef="_4"/> </process> <bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=841.824;height=595.224" id="Yaoqiang-_0" name="Yaoqiang BPMN Diagram 1"> <bpmndi:BPMNPlane bpmnElement="_1"> <bpmndi:BPMNShape bpmnElement="_2" id="Yaoqiang-_2"> <dc:Bounds height="32.0" width="32.0" x="35.0" y="90.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="58.72727272727272" x="71.63636363636364" y="179.90378639914772"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_12" id="Yaoqiang-_12"> <dc:Bounds height="55.0" width="85.0" x="127.0" y="78.5"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="59.636363636363626" x="189.6818181818182" y="147.90378639914772"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_3" id="Yaoqiang-_3"> <dc:Bounds height="55.0" width="85.0" x="272.0" y="78.5"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="77.81818181818181" x="325.59090909090907" y="147.90378639914772"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_4" id="Yaoqiang-_4"> <dc:Bounds height="55.0" width="85.0" x="417.0" y="78.5"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="60.54545454545453" x="479.2272727272728" y="147.90378639914772"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_7" id="Yaoqiang-_7"> <dc:Bounds height="32.0" width="32.0" x="562.0" y="90.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="56.0" x="600.0" y="179.90378639914772"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_9" id="Yaoqiang-_9"> <dc:Bounds height="55.0" width="85.0" x="130.0" y="200.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="6.0" x="180.0" y="269.4037863991477"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="_11" id="Yaoqiang-_11"> <dc:Bounds height="55.0" width="85.0" x="425.0" y="195.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="19.82879083806818" width="6.0" x="475.0" y="264.4037863991477"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="_13" id="Yaoqiang-_13" sourceElement="_2" targetElement="_12"> <di:waypoint x="50.0" y="105.0"/> <di:waypoint x="150.0" y="120.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_8" id="Yaoqiang-_8" sourceElement="_4" targetElement="_7"> <di:waypoint x="465.0" y="115.0"/> <di:waypoint x="580.0" y="120.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_6" id="Yaoqiang-_6" sourceElement="_3" targetElement="_4"> <di:waypoint x="320.0" y="110.0"/> <di:waypoint x="480.0" y="115.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_5" id="Yaoqiang-_5" sourceElement="_12" targetElement="_3"> <di:waypoint x="170.0" y="105.0"/> <di:waypoint x="345.0" y="120.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_14" id="Yaoqiang-_14" sourceElement="_11" targetElement="_4"> <di:waypoint x="470.0" y="225.0"/> <di:waypoint x="465.0" y="120.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="_10" id="Yaoqiang-_10" sourceElement="_9" targetElement="_12"> <di:waypoint x="175.0" y="230.0"/> <di:waypoint x="170.0" y="125.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>
          Hide
          Daniel Meyer (camunda) added a comment -

          Resolving as duplicate of ACT-1099 since ACT-1099 has a testcase attached

          Show
          Daniel Meyer (camunda) added a comment - Resolving as duplicate of ACT-1099 since ACT-1099 has a testcase attached

            People

            • Assignee:
              Daniel Meyer (camunda)
              Reporter:
              Simone Tognozzi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: