We're updating the issue view to help you get more done. 

Support querying executions by root process instance id

Description

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:
https://github.com/Activiti/Activiti/pull/868

Status

Assignee

Tijs Rademakers

Reporter

Robert Hafner

Labels

None

Components

Fix versions

Priority

High