cancel
Showing results for 
Search instead for 
Did you mean: 

Java API - Get tasks and subtasks for a processInstanceId?

roadtripryan
Champ in-the-making
Champ in-the-making
I can't seem to figure out the traversal path to get all tasks and their sub-tasks for a given process instance id!

I tried

taskService.createTaskQuery().processInstanceId(processInstanceId).list();

But this only gives tasks directly under the processInstanceId, not sub-tasks that may be under parent tasks.

Anyone have an example of getting all tasks for a processInstanceId?

Thanks,
Ryan
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Unfortunately that seems not possible. Altough I agree it would be a valid addition. Please create a Jira issue for us to follow up.