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&...]