AnsweredAssumed Answered

Get All  Active Tasks, Including Sub Process Tasks

Question asked by mikebrown01 on Sep 20, 2013
Latest reply on Sep 25, 2013 by raghuramanpe
Hi.

Is there a way to get all active tasks including those from a subprocess (invoked using Call Activity)?

I've tried the following
1) List<Task> tasks = taskService.createTaskQuery().executionId(processInstanceId).list();
– Only gives tasks for specified process

2) Passing in Business Key
– That doesnt get passed down to the sub processes

3) Get the process Id for launched sub processes
– Can't see a way to do it.

4) Investigated using taskService.createNativeQuery()
– Don't see in the tables how to generate a query that will allow me to get all of the tasks….which
is probably a bad sign :(

Outcomes