Get all tasks from a process instance

Hi

The following is my BPMN diagram


I would like to list down all the tasks from the start event towards the default path, is there any java api which can be used to achieve this?
Also I would like to list down the tasks in the sub-process too.

Thanks

1 Like

Hi @Ranjith_Kannan,

this is a very specific use case, so there is no out of the box support for such logic. But you can implement it yoursef using model API.

Hope that helps,
Askar

1 Like

Hi askar

Thanks for your reply.
But is it possible to get the task next task to be executed given the current task id and process instance Id using any java API ?

1 Like

Hi @Ranjith_Kannan,

well I assume you could use REST api to query by PI id and AI ids
https://docs.camunda.org/manual/7.6/reference/rest/task/post-query/. Apart from that there is nothing that I know of.

Cheers,
Askar

1 Like

Hi Ranjith were you able to solve this ?