cancel
Showing results for 
Search instead for 
Did you mean: 

Howto get both assigned tasks and tasks where use is candidate in one call

xman-berlin
Champ in-the-making
Champ in-the-making
Hi all,

I want to retrieve all tasks that are assigned to a user plus all tasks where the user is a candidate to properly implement paging and sorting. The following scenario should work:
  • Start one process with one simple user task defining candidate groups (group1, group2)
  • Query tasks for user (member of group1) for assigned and candidate tasks: returns the simple unassigned task
  • User claims that task
  • Query tasks for user (member of group1) for assigned and candidate tasks: returns the simple assigned task
I tried different combinations of TaskQuery-Parameters, e.g. taskAssignee+candidateUser or assignee+candidateGroupIn, but the resulting list did not contain the assigned task.

Any help is appreciated,
Best regards,
Torsten
11 REPLIES 11

trademak
Star Contributor
Star Contributor
Hi,

The best way to get this in the Activiti project is to create a pull request.

Best regards,

schmke
Champ in-the-making
Champ in-the-making
Was anything done about this request?  I think this is the same thing I was asking about in another thread: https://forums.activiti.org/content/how-get-tasks-where-user-would-be-candidate-if-not-already-assig...