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

Ashok Kuppuswamy do-not-reply at jboss.com
Mon Dec 17 11:59:28 EST 2012

Ashok Kuppuswamy [https://community.jboss.org/people/akuppu] created the discussion

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

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

Is there a easy way to check if a user can claim a particular task. Right now, I am getting all the tasks that the user can potentially own and checking if the task that I am looking for is present.


  taskIdToCheck = somtaskId;

                              List<TaskSummary> userTaskList = taskService.getTasksAssignedAsPotentialOwner(userId, "en-UK");
                              for(TaskSummary taskSummary : userTaskList){
                                        if(taskIdToCheck  == (new Long(taskId).longValue())){ 
        // task is claimable

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/bc329a8b/attachment.html 

More information about the jboss-user mailing list