[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.

{code}

  taskIdToCheck = somtaskId;

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

Reply to this message by going to Community
[https://community.jboss.org/message/783752#783752]

Start a new discussion in jBPM at Community
[https://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/20121217/bc329a8b/attachment.html 


More information about the jboss-user mailing list