cancel
Showing results for 
Search instead for 
Did you mean: 

How to get parentId from ACT_RU_EXECUTION

ankits
Champ in-the-making
Champ in-the-making
I want to know the parentId of an execution, querying createExecutionQuery() does not return parentId.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
As of 5.13, the Execution interface exposes the parent ID:

/**
   * Gets the id of the parent of this execution. If null, the execution represents a process-instance.
   */
  String getParentId();

For older activiti-versions, you can always use the hack-around and cast the Execution to an ExecutionImpl and call the getParentId().