-
1. Re: find User tasks
rebody May 5, 2010 5:12 AM (in response to newbeewan)Hi Jaber,
If you used candidate-users or candidate-groups to set the participants of a Task. You should use taskService.findGroupTask("John") to get the group task list.
-
2. Re: find User tasks
zecas May 5, 2010 5:16 AM (in response to newbeewan)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
Edit: you can find more info on sub-section 6.2.6.2. task candidates here: http://docs.jboss.com/jbpm/v4/userguide/html_single/#task
Hope it helps.
-
3. Re: find User tasks
newbeewan May 5, 2010 5:32 AM (in response to zecas)Ok, I was melting candidate and assignee
I have also found a workaround with :
taskService.createTaskQuery().candidate("john").list();
Thanks for your replies !