[jboss-user] [jBPM] - How to recognize when async-node is finished?

Maurice de Chateau do-not-reply at jboss.com
Thu Jun 17 04:40:43 EDT 2010


Maurice de Chateau [http://community.jboss.org/people/MohReece] replied to the discussion

"How to recognize when async-node is finished?"

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

--------------------------------------------------------------
Johannes,

This is a problem we've been facing as well, e.g. in testing: how long do you wait for an async execution to end? There's no mechanism in jBPM 3 (as far as I know) to be notified that such an execution has ended, and determining the end of the execution is somewhat non-deterministic - it would take into account the time used for scheduling the async command(s) and executing the corresponding code.

One mechanism available in Hibernate is to register a hook (an implementation of Synchronization) to the async transaction (something I tried to explain here:  http://community.jboss.org/message/399790#399790 http://community.jboss.org/message/399790#399790), but that only works if you are able to set up that hook.

An approach we've been using as well is to simply poll for the async execution to be ended (using relative short cycles with sleeps in between). I would agree if you'd say that's just butt-ugly, but we've found it works for us - lacking a better solution.

Regards,
Maurice

--------------------------------------------------------------

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

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/20100617/5f0fd3e2/attachment.html 


More information about the jboss-user mailing list