mvermand [
https://community.jboss.org/people/mvermand] created the discussion
"Re: timer repeat count in JBPM4.4"
To view the discussion, visit:
https://community.jboss.org/message/647171#647171
--------------------------------------------------------------
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*
#
http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/...
*EventListener* {
*private* *static* *final* *long* serialVersionUID = *1L*;
#
*public* *void* notify(
http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/...
*EventListenerExecution* execution) {
#
http://java2s.com/Open-Source/Java-Document/6.0-JDK-Core/lang/java/lang/I...
*Integer* invocations = (
http://java2s.com/Open-Source/Java-Document/6.0-JDK-Core/lang/java/lang/I...
*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/...
http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/...)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/647171#647171]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]