1 Reply Latest reply on Mar 17, 2015 1:01 AM by Diego Tognola

    JBPM 6.1.0 custom Human Task event listener is not working

    Soumya Bose Newbie

      In JBPM 6.1.0.Final I am trying to put a custom task event listener, so that I can write some of my code on create / complete of a task. I am doing the following -

       

      In my kie project's 'java/src/main' source directory I have created a custom listener class 'CustomBAMTaskEventListener' which extends 'BAMTaskEventListener' class. I have overriten some methods like 'afterTaskActivatedEvent', 'afterTaskAddedEvent', 'afterTaskCompletedEvent' with some print statement. And within kie project's META-INF/kie-deployment-descriptor.xml I have defined this task listener -

       

      <task-event-listeners>

              <task-event-listener>

                  <identifier>new com.cordistech.task.listener.CustomBAMTaskEventListener()</identifier>

              </task-event-listener>

          </task-event-listeners>

       

      But in jbpm while a new task is getting created, this listener class is not picked up. Cant see the print statements in jbpm console log.

       

      Can you please advise how to use my custom HT event listener in jbpm to achieve my requirement ? Any help will be really appreciated.