[jboss-user] [jBPM] - Re: How to check if a user can claim a task

Thomas Setiabudi do-not-reply at jboss.com
Mon Dec 17 20:04:29 EST 2012

Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: How to check if a user can claim a task"

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

Hi Ashok Kuppuswamy,

Why do you need to do that? I think after you get a list of task that the user assigned as potential owner, all the task in your list is claimable by the user.

If you want to claim the task, just use the taskClient function to claim the task. 
Basically what will happen is the Human Task Service will check again if that Task is claimable by the user by using its UserGroupCallback component, calling getGroupsForUser. If the user still able to claim the task, then the task will be claimed, if not, it will return an exception saying that the user does not have right to do that action (claim task).

Thomas Setiabudi

Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121217/97803f7f/attachment-0001.html 

More information about the jboss-user mailing list