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:
https://docs.camunda.org/manual/latest/reference/rest/process-instance/post-query/

POST /process-instance
{
  "superProcessInstance":"theParentProcessInstanceId"
}

Hope that helps