AnsweredAssumed Answered

ExecutionListener was excuted 2 times, why?

Question asked by wliang_bj on Jul 10, 2013
Latest reply on Jul 19, 2013 by frederikheremans1
I encouter a question.

I defined a class named ExecutionCommentListner implements ExecutionListener, and defined it's event="end"; like below:

public class ExecutionCommentListner implements ExecutionListener {

   private static final long serialVersionUID = -6014971966749562667L;

   public void notify(DelegateExecution exec) throws Exception {
      // TODO Auto-generated method stub
      System.out.println(exec.getVariable("approved"));
      System.out.println(exec.getVariable("comment"));
      System.out.println(exec.getCurrentActivityName());
   }

}

when I complete the task node, I find ExecutionCommentListner was executed 2 times;

I got :

true
hello
null
true
hello
UserTask1

is this a bug , or did I do something wrong? BTW my version is 5.12

Outcomes