[jboss-user] [jBPM] - Re: How to cancel Timer Event

Chris Melas do-not-reply at jboss.com
Mon Jul 18 10:19:56 EDT 2011


Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to cancel Timer Event"

To view the discussion, visit: http://community.jboss.org/message/615871#615871

--------------------------------------------------------------
Hello,
One simple approach could be to use a parameter as a flag (i.e. boolean timeout ) within your process and then simply raise it or not when completing the logic of your process (i.e. right before exiting) or after the timer node. Then at a gateway check the flag's value and decide whether you should raise an exception or not.

In addition a quote from the documentation  http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#sec.timers http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#sec.timers "+The timer is cancelled if the timer node is cancelled (e.g., by completing or aborting the enclosing process instance).+" . Actually you don't need to cancel a timer event if it is part of your process logic, instead use your logic inside your process to act accordingly (i.e. as instructed above).
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/615871#615871]

Start a new discussion in jBPM at Community
[http://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/20110718/b1f2095c/attachment.html 


More information about the jboss-user mailing list