We have a use case in which we need to find all executions related to a process instance including any executions started by a CallActivity. We would like to add the method (rootProcessInstanceId) to the ExecutionQuery class to support this behavior.
ExecutionQuery query = runtimeService.createExecutionQuery().rootProcessInstanceId(processId);
List<Execution> executions = query.list();
The following Pull Request has been submitted for this issue: