How to retrieve the sub workflow processinstance id

I have 2 sub flows in the main workflow and how do i retrieve these process instance ids from the main process instance id ?

Hi @Vamsi,

You can achieve this via Java API or Rest API by providing superProcessInstance.
Example of the rest api:

POST /process-instance

Hope that helps