[jboss-user] [jBPM] - Re: Cancel timer node jbpm5.0

Kris Verlaenen do-not-reply at jboss.com
Mon Feb 21 21:45:53 EST 2011

Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: Cancel timer node jbpm5.0"

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

You can cancel a timer if you know the timer instance id and ask the timer manager to cancel that timer instance.

In general however, it isn't trivial to get access to this information without diving into the details.  That is why there is a best practice guideline that helps you managing cases where you need to cancel a timer: instead of trying to cancel the timer instance directly, you just cancel the node / sub-process that the timer is defined in, which will also cancel the timer instance.

For example, if you have a boundary timer event, canceling the node that the boundary event was linked to will also cancel the timer.  Similarly, if you use a sub-process that contains the timer, completing or aborting that subprocess will also cancel the contained timer instances.


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110221/353fe82f/attachment.html 

More information about the jboss-user mailing list