How do I get all the subprocess for a workflow from flowable-rest API ?
You can use the rest API: query/historic-process-instances and you need to set the superProcessInstanceId while making rest API call which is the processInstanceId of the main process.
Example:
URI: http://localhost:8091/query/historic-process-instances
Request Method: POST
Content-Type: application/json
Request Body:
{
“superProcessInstanceId” : “5035”,
“includeProcessVariables”:true
}