[jboss-user] [jBPM] - find User tasks
zecas zecas
do-not-reply at jboss.com
Wed May 5 05:13:58 EDT 2010
zecas zecas [http://community.jboss.org/people/zecas] replied to the discussion
"find User tasks"
To view the discussion, visit: http://community.jboss.org/message/541272#541272
--------------------------------------------------------------
Hi,
You have defined the users as candidate-users="...", and that makes the tasks available on the group task list. For a user to list, you must call:
tasks = taskService.findGroupTasks("john");
Then if you want to work with it, you must pick it up, so the task is given a specific assignee, and no other person picks it up:
taskService.takeTask(tasks.get(0).getId(), "john");
You must work out the tasks.get(0).getId() part :)
Hope it helps.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/541272#541272]
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/20100505/c28c5c30/attachment.html
More information about the jboss-user
mailing list