[REST_API] problem matching candidate groups

179 views
Skip to first unread message

Jan Hölter

unread,
Nov 27, 2014, 5:27:25 AM11/27/14
to camunda-...@googlegroups.com



Hi everybody,

i am facing the following problem.
From my application I want to query all User-Tasks by candidateGroup via the REST-API. When I query the identity-links I get the expected list of groups that are assigned to the task:



As you can see the Task has the assigned candidateGroups "TAZ[1-6]". When i now query e.g. all Tasks containing group TAZ-6 i get an empty result list.


I already debugged all the way down to TaskManager.findTasksByQueryCriteria() and further. The list of parameters for candidateGroups seems to be set correctly. So my last guess is there might be some issue in the database queries.

Do you have any idea that could help me ? Anything i might be doing wrong ? Is there any chance to "capture" the actual database queries ?

We set up camunda-v7.1.0-Final on a vanilla tomcat using spring. The system is running on my local machine using the default h2 database configuration.

Thanks for helping
Jan



thorben....@camunda.com

unread,
Nov 27, 2014, 7:47:29 AM11/27/14
to camunda-...@googlegroups.com
Hi,

Could you please also post the result of GET localhost:8080/engine-rest/task/{taskId} ?

Thanks,
Thorben

Sebastian Menski

unread,
Nov 27, 2014, 8:04:29 AM11/27/14
to camunda-...@googlegroups.com
Hi Jan,

the problem is that the task is assigned to the user 'hoelter'. This way the candidates are ignored cause it is already assigned.

Cheers,
Sebastian

Jan Hölter

unread,
Nov 28, 2014, 9:47:44 AM11/28/14
to camunda-...@googlegroups.com
Thank you Sebastian i wasn't aware of that fact.
So the acutal problem was, that my task was not unclaimed correctly by our client.
Good to know.

Cheers
Jan
Reply all
Reply to author
Forward
0 new messages