AnsweredAssumed Answered

Adding TaskListener in custom BpmnParseHandler

Question asked by jwojtczak on Jul 26, 2013
Latest reply on Jun 23, 2017 by mprakash

I'm trying to add TaskListener to UserTask in custom BpmnParseHandler. I implemented BpmnParsehandler interface and added my TestBpmnParseHandler to the processEngineConfiguration bean.

   <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="preBpmnParseHandlers">
            <bean class="com.testowy.test.TestBpmnParseHandler" />

I tried to add TaskListener by adding ExstensionElement to BaseElement that is being processed, but it does not work, TaskListener is not being executed when the UserTask is completed.

   public class TestBpmnParseHandler implements BpmnParseHandler {
      public void parse(BpmnParse bpmnParse, BaseElement element) {
         ExtensionElement ee = new ExtensionElement();
         ExtensionAttribute ea = new ExtensionAttribute();
         ExtensionAttribute ea2 = new ExtensionAttribute();

Do You have any ideas what am I doing wrong?