Seems that that is not the behavior of ProcessEventListener. According to javadoc of afterNodeLeft():
/**
* This listener method is invoked right after a node in a process instance has been left
* (which is when the node was completed, for example when it performed the task it was
* designed for).
* @param event
*/
And this is NodeInstanceImpl.cancel():
public void cancel() {
nodeInstanceContainer.removeNodeInstance(this);
}
As you can see, no event is thrown when a node is canceled. I think it would be nice to have this type of event though. Could you plase file an issue in jBPM5 jira? https://issues.jboss.org/secure/CreateIssue!default.jspa