[jboss-user] [jBPM] - Re: Persisted human tasks do not trigger workitem complete

bpmn2user do-not-reply at jboss.com
Mon Apr 25 16:26:31 EDT 2011


bpmn2user [http://community.jboss.org/people/bpmn2user] created the discussion

"Re: Persisted human tasks do not trigger workitem complete"

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

--------------------------------------------------------------
Robert,

Also please note that task handler connects to the task service using a lazy connection approach. 
You, however,  can connect immediately so that you retrieve the task completion events even before the first task is created. To instantiate the listener using this approach you might modifying your code like this:

CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
 ksession.getWorkItemManager().registerWorkItemHandler("Human Task",taskHandler);
 *taskHandler.connect();*
--------------------------------------------------------------

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

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/20110425/072e1560/attachment.html 


More information about the jboss-user mailing list