[jboss-user] [jBPM] - Re: Combining human and automated tasks
Demian Calcaprina
do-not-reply at jboss.com
Mon Dec 12 11:26:04 EST 2011
Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion
"Re: Combining human and automated tasks"
To view the discussion, visit: http://community.jboss.org/message/641113#641113
--------------------------------------------------------------
In fact, the resume is made automatically when you complete the task.
For example,
CommandBasedWSHumanTaskHandler handler = new CommandBasedWSHumanTaskHandler(ksession)
...
handler.connect()
..
session.registerWorkItemHandler("Human Task", handler);
This will make that:
1) The human task listeners for task completion are registered.
2) When task is registered, the listener has the session to continue the process.
Now, you can make
client.complete(taskId,...)
Now the listener (you can check it, GetResultContentResponseHandler) will be notified about task completion and process continued.
Hope this helps,
Demian
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/641113#641113]
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/20111212/6b8560e1/attachment.html
More information about the jboss-user
mailing list