Querying for tasks having candidate groups and being already assigned

171 views
Skip to first unread message

Cristian Cerb

unread,
Feb 19, 2015, 11:26:28 AM2/19/15
to camunda-...@googlegroups.com
If I query for tasks having candidate groups using TaskQuery.taskCandidateGroupIn(List<String> candidateGroups), but unassigned yet, the API gives me back all those user tasks that qualify. If I assign any of these task and then I query by groups using TaskQuery.taskCandidateGroupIn(List<String> candidateGroups), the assigned tasks will be excluded from the results of the query. Is there a way other that using custom queries to retrieve all tasks that have candidate groups, even if already claimed?

thorben....@camunda.com

unread,
Feb 19, 2015, 12:05:50 PM2/19/15
to camunda-...@googlegroups.com
Hi Cristian,

No, there is not. The task query SQL statement explicitly checks that the assignee is null for these tasks. You are invited to provide a pull request though :)

Best regards,
Thorben

Cristian Cerb

unread,
Feb 19, 2015, 12:25:38 PM2/19/15
to camunda-...@googlegroups.com
Thorben,

This will make you smile, we are still using CVS, we will switch to git soon, I hope. I am not familiar enough with git. :)

Daniel Meyer

unread,
Feb 20, 2015, 2:55:22 AM2/20/15
to camunda-...@googlegroups.com

Cristian Cerb

unread,
Feb 20, 2015, 11:25:49 AM2/20/15
to camunda-...@googlegroups.com
nice, thanks!
Reply all
Reply to author
Forward
0 new messages