cancel
Showing results for 
Search instead for 
Did you mean: 

task query question

whdwsl
Champ in-the-making
Champ in-the-making
when i query someone`s tasks(all tasks that this person can handle), i must query three times:assignee( candidate-user and candidtae-group) and plus them together, is there a better way?
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Two queries should be enough. Only taskAssignee and candidateUser should do it, since candidateUser should also include the groups for that user.
Assignee is a different concept than candidate user and therefore you need two queries.

Best regards,

whdwsl
Champ in-the-making
Champ in-the-making
Hi,

Two queries should be enough. Only taskAssignee and candidateUser should do it, since candidateUser should also include the groups for that user.
Assignee is a different concept than candidate user and therefore you need two queries.

Best regards,

yes, from the sql activiti engine print out,  when candidateUser is not null, activiti will first find all groups this candidateUser belong to, thanks!