AnsweredAssumed Answered

ExecutionListener on Start/End Event removed/ignored

Question asked by activiator on Nov 25, 2014
Latest reply on Oct 17, 2016 by sunilkumartk
Hello,

i am using activiti 5.16.3 explorer and are experiencing the problem that definitions of Execution listeners on Start or End Events are ignored/removed. Meaning that they do not show up in the deployed or exported .bpmn20.xml definition file.

My test-setup is a very simple process consisting of a start Event, directly connected to a ServiceTask, directly connected to an End Event (xml see below). When i now
a) assign Execution listeners to the start or end event via the Modeler gui, right side under Properties "(End event)" attribute "Execution listeners"
b) save the model
c) close the model view
then when deploying or exporting the model there are no extensionElements for the Start/End Event.

Below is the output after these steps:


<process id="process" isExecutable="true">
    <startEvent id="sid-8C401D45-26B8-44EE-A2EC-AF1851B7FE94" name="start"/>
    <serviceTask id="sid-FBDB8CC2-B12D-4764-88E6-3EE32039D6D2" name="MyServiceTask" activiti:class="pa.th.to.HelloWorldServiceTask"/>
    <endEvent id="sid-3C5DDA48-6075-4DF9-B788-D4D7AB1282E3" name="ende"/>
    <sequenceFlow id="sid-5C5E19CD-9F38-41DC-9AFE-69910429A3C1" sourceRef="sid-8C401D45-26B8-44EE-A2EC-AF1851B7FE94" targetRef="sid-FBDB8CC2-B12D-4764-88E6-3EE32039D6D2"/>
    <sequenceFlow id="sid-18D75904-EDF5-4710-A603-CEB35312A9C3" name="myArrow" sourceRef="sid-FBDB8CC2-B12D-4764-88E6-3EE32039D6D2" targetRef="sid-3C5DDA48-6075-4DF9-B788-D4D7AB1282E3">
      <extensionElements>
        <activiti:executionListener event="take" class="pa.th.to.MyExecutionListener"/>
      </extensionElements>
    </sequenceFlow>
  </process>
<bpmndi:BPMNDiagram id="BPMNDiagram_process">
    <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">
      <bpmndi:BPMNShape bpmnElement="sid-8C401D45-26B8-44EE-A2EC-AF1851B7FE94" id="BPMNShape_sid-8C401D45-26B8-44EE-A2EC-AF1851B7FE94">
        <omgdc:Bounds height="30.0" width="30.0" x="293.0" y="170.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-FBDB8CC2-B12D-4764-88E6-3EE32039D6D2" id="BPMNShape_sid-FBDB8CC2-B12D-4764-88E6-3EE32039D6D2">
        <omgdc:Bounds height="80.0" width="100.0" x="435.0" y="145.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-3C5DDA48-6075-4DF9-B788-D4D7AB1282E3" id="BPMNShape_sid-3C5DDA48-6075-4DF9-B788-D4D7AB1282E3">
        <omgdc:Bounds height="28.0" width="28.0" x="705.0" y="171.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-18D75904-EDF5-4710-A603-CEB35312A9C3" id="BPMNEdge_sid-18D75904-EDF5-4710-A603-CEB35312A9C3">
        <omgdi:waypoint x="535.0" y="185.0"/>
        <omgdi:waypoint x="705.0" y="185.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-5C5E19CD-9F38-41DC-9AFE-69910429A3C1" id="BPMNEdge_sid-5C5E19CD-9F38-41DC-9AFE-69910429A3C1">
        <omgdi:waypoint x="323.0" y="185.0"/>
        <omgdi:waypoint x="435.0" y="185.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>


As you see, the startEvent/endEvent entires are empty, i would have expected an extensionElements entry.
Even when i modify the .xml-File above to add the missing entry after re-importing the xml-file the entry is missing again, no error shows up.

Generally execution listeners on sequenceflows or task elements work fine for me.

Is this a known issue/limitation ?
Or am i doing/understand something wrong ?

Any help would be greatly appreciated :)

Outcomes