[jboss-user] [jBPM] - Re: What happens if the TaskServer is shutdown between Created and Complete states?

Kris Verlaenen do-not-reply at jboss.com
Wed Apr 6 11:13:56 EDT 2011

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

"Re: What happens if the TaskServer is shutdown between Created and Complete states?"

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

The engine registers itself to the task service when you initialize your WSHumanTaskHandler.  Assume you need to recreated your session and task service (for example due to failure), the state of your process instances and of your human tasks are persisted in the session and task service respectively.  So you can restore them from database.  When reconnecting the session to the task service, the listener will also be restored.

There used to be an issue where there was one listener for each requested task.  The fix as applied in JBRules-2002 now uses a generic listener for all tasks.  This is also how it works in jBPM 5.0.

Note that the task handler usually only lazily connects to the task service (so the first time the session tries to create a task).  To make sure you connect immediately (so you can retrieve task completion events even before the first task is created), do handler.connect() after registering it.  This will instantiate the listener.


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/20110406/c39d0961/attachment.html 

More information about the jboss-user mailing list