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&...]