I haven’t come across anything to indicate as such in the docs, but is it possible to restrict the query return of tasks to, the members of the candidate groups assigned to the task(s) over REST?
So e.g.
I am a member of group 2, not listed as a candidate group for a group 1 task, so therefore I can not get the tasks for group 1 if I query for all tasks if I make the query over rest. It is also ok if this can be achieved by adding something to the query parameter except the candidate groups parameter, since that can result in a very long query string.
Have you looked at taskService query :
taskService.createTaskQuery().taskCandidateGroup()
Any reply on this please?
According to the docs, it should be possible but a query over rest like:
http://localhost:9090/process_engine/process-api/runtime/tasks?candidateGroups=GROUP_site_myTestGroup retuns nothing.
I should add that I’m working with a springboot application that is using a WIP (work-in-progress) IDM and the IDM works fine with group queries right now.
I saw that but I was really after asking about doing this over the out of the box REST api
Looking at the code where the candidateGroups parameter gets handled, that should work: https://github.com/flowable/flowable-engine/blob/master/modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskCollectionResource.java#L177
Have you made sure there’s nothing weird going on with url encoding? Can you debug that particular line?