cancel
Showing results for 
Search instead for 
Did you mean: 

ExecutionListener on Start/End Event removed/ignored

activiator
Champ in-the-making
Champ in-the-making
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 Smiley Happy

7 REPLIES 7

activiator
Champ in-the-making
Champ in-the-making
the same effect shows up on a vanialla 5.16.4 explorer-war deployed on glassfish 4.1 final (b13) under oracle jdk1.7.0_67:

deployed activiti-explorer.war from the zip found under "wars"-directory
logged in via kermit/kermit on localhost:8080/activiti-explorer
clicked to "processes/Model workspace"
clicked new model
produced the xml attached (without defining ExecutionListeners anywhere)
–> process_without_listerners.bpmn20.xml
now i click on "edit", chosse my "myEnd" Event and add an ExecutionListener. i use the start event, according to the documentation: "Ending an start event or starting an end event."
the gui displays: {"totalCount": 1, "items": ……..
additionally i add a documentation line
i save the model, close the modeler and click on "export", safe the file as process_after_adding_listerner.bpmn20.xml

<code>
$ diff process_without_listerners.bpmn20.xml process_after_adding_listerner.bpmn20.xml
6c6,8
<     <endEvent id="sid-8C013A86-2107-45E6-ADF5-1A4A4395D7BF" name="myEnd"/>

>     <endEvent id="sid-8C013A86-2107-45E6-ADF5-1A4A4395D7BF" name="myEnd">
>       <documentation>now with listener</documentation>
>     </endEvent>
</code>

seemsto be a bug ?!

galaxypan
Champ in-the-making
Champ in-the-making
same issue on my side. any news on this?

activiator
Champ in-the-making
Champ in-the-making
no news, sry.

unfortunately i had no time to investigate further.
currently we solved our problem by just adding servicetasks right before the exit nodes doing the job.

tone
Champ in-the-making
Champ in-the-making
Any news about this issue?  The removal of execution listeners on end events problem also exists in activiti 5.18.0.

dhurendraveersi
Champ in-the-making
Champ in-the-making
Hi,

I have used in my process as below and it is working fine on 5.18.0.

<endEvent id="endevent1" name="End">
      <extensionElements>
        <activiti:executionListener event="start" expression="#{processEndListener.notify(execution)}"></activiti:executionListener>
      </extensionElements>
</endEvent>

tsaesh
Champ in-the-making
Champ in-the-making
Hey,

I had the same bug in 5.18. After an update to V. 5.20.0, it is possible to add an ExecutionListener directly in the activiti explorer. It will now be saved, also if you do an export from the explorer and import it in the eclipse designer plugin.

However:
If you import a model to the explorer, the executionListeners on the Start Event is gone.
Example: Try export from explorer(with listeners), and import again.

Within the import, the model object seems to be okay, but the data is lost anyway.


sunilkumartk
Champ on-the-rise
Champ on-the-rise
I use Activiti 5.19
But When i export a the model to another env, the end Task listener information is lost.

test case:
1. create a simple wf with a simple end task listener.
2. export wf to bpmn xml
3. import to another environment.
4. Verify the execution listeners are imported. Found they dont exist.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.