Hi,
I don't have a direct answer to why the class is not found.
But given that you solve that issue, you might keep track of the number of invocations like this:
public static class PropagationEnabledListener implements
# EventListener {
private static final long serialVersionUID = 1L;
#
public void notify(EventListenerExecution execution) {
# Integer invocations = (Integer) execution
.getVariable("invocations");
if (invocations == null) {
execution.setVariable("invocations", 1);
} else {
execution.setVariable("invocations", invocations + 1);
}
}
}
(http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/org/jbpm/test/eventlistener/EventListenerTest.java.htm)