[jboss-user] [jBPM] - Re: Using Timers to Interrupt Synchronous Process in jBPM5

Maciej Swiderski do-not-reply at jboss.com
Fri Nov 4 07:21:08 EDT 2011

Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Using Timers to Interrupt Synchronous Process in jBPM5"

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


issue you are facing is due to thread synchronization. You start a process on a thread that does not complete when timer is fired. Timer is executed on separate thread but it cannot continue because it waits until the first operation will release process instance which does not happen so the sleeping time expires in your work item handler and timer does not have opportunity to complete.

Please find attached modified work item handler that moves the work to be done on separate thread and releases the main thread that started the process. With this timer is fired properly and activity is aborted.


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/20111104/584b1cf9/attachment.html 

More information about the jboss-user mailing list