[jboss-user] [jBPM] - Re: Problem in JPAWorkItemManager when completing a task

gardellajp do-not-reply at jboss.com
Wed Jan 11 10:53:01 EST 2012


gardellajp [https://community.jboss.org/people/gardellajp] created the discussion

"Re: Problem in JPAWorkItemManager when completing a task"

To view the discussion, visit: https://community.jboss.org/message/646017#646017

--------------------------------------------------------------
Hi,

For complete a Task, you must have the session open and the client that you are using must register listener to update the session (if you are using TaskClient). See the code inside CommandBasedWSHumanTaskHandler.connect(). Remember (is not in official doc) that is not automatically the refresh of the session when you call taskClient.complete(...), you must explicity define a listener that must update the session state.

You can extend CommandBasedWSHumanTaskHandler and make a setter of TaskClient or look this class to make your solution. I did a simple helper clasess to manage this. 

Juan
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20120111/65a464b0/attachment.html 


More information about the jboss-user mailing list