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