cancel
Showing results for 
Search instead for 
Did you mean: 

its is possible to 'unclaim'?

luisalves00
Champ in-the-making
Champ in-the-making
I know how to claim a task…but it's possible to "unclain" an task?
7 REPLIES 7

frederikherema1
Star Contributor
Star Contributor
Use setAssignee(null)

luisalves00
Champ in-the-making
Champ in-the-making
tks frederikheremans.

luisalves00
Champ in-the-making
Champ in-the-making
is there a way to know that the task was claimed (is a pooled task)?

pseudocode:

if(task.wasClaimed()){
   task.setAssignee(null);
}

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
uhhmmm… besides setters, there are also getters…. so if unclaiming is setting it to null, maybe, just maybe, it might be that a getter returning not null would mean it is assigned.

gao277
Champ in-the-making
Champ in-the-making
but the taskservice interface has not getAssignee method in 5.3.

if i need to check if the user who want to unclaim the task and the task's assignee is the same person,how can i do?

frederikherema1
Star Contributor
Star Contributor

Task theTask = taskService.createTaskQuery().taskId("1234").singleResult();

org.activiti.engine.task.Task

/** The {@link User.getId() userId} of the person to which this task is delegated. */
String getAssignee();

gao277
Champ in-the-making
Champ in-the-making
OK.

i know.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.