AnsweredAssumed Answered

Count candidate tasks group by process instance ?

Question asked by christophe.carvalho on Sep 25, 2014

I want to count how many tasks are assigned to a particular candidate but i want the result to be group by process instance, i can i do that using TaskQuery  (i mean only one task for a process instance even if two tasks are assigned to this candidate for this process instance) ?

Here is my query :

Long toReturn = taskService.createTaskQuery().taskCandidateGroupIn(actorsId).count();

Best regards.