Adding a listener to a script task in the Activiti Designer 5.11.1 produces erroneous XML content.
The <extensionElements> section containing the execution listener is written at the wrong position:
This leads to the following exception:
org.activiti.engine.ActivitiException: cvc-complex-type.2.4.d:Invalid content was found starting with element 'extensionElements'. No child element is expected at this point.
The correct order is
extensionElements including listeners
This error might effect other elements as well - the implementation in org.activiti.bpmn.converter.BaseBpmnXMLConverter first writes additional child elements and listeners afterwards (with the exception of the sequence flow which has a condition expression that should come after the extensElements as well).
Eclipse Indigo SR2
Activiti Designer 5.11.1