[jboss-user] [jBPM] - Re: timer repeat count in JBPM4.4

mvermand do-not-reply at jboss.com
Tue Jan 17 08:50:21 EST 2012


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/org/jbpm/api/listener/EventListener.java.htm *EventListener* {
                *private* *static* *final* *long* serialVersionUID = *1L*;
#
                *public* *void* notify( http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/org/jbpm/api/listener/EventListenerExecution.java.htm *EventListenerExecution* execution) {
#                     http://java2s.com/Open-Source/Java-Document/6.0-JDK-Core/lang/java/lang/Integer.java.htm *Integer* invocations = ( http://java2s.com/Open-Source/Java-Document/6.0-JDK-Core/lang/java/lang/Integer.java.htm *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 http://java2s.com/Open-Source/Java-Document/Workflow-Engines/jbpm-jpdl-4/org/jbpm/test/eventlistener/EventListenerTest.java.htm)
--------------------------------------------------------------

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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120117/43e52e54/attachment.html 


More information about the jboss-user mailing list