protected DelegateExecution getMultiInstanceRootExecution(DelegateExecution executionEntity) { DelegateExecution multiInstanceRootExecution = null; DelegateExecution currentExecution = executionEntity; while (currentExecution != null && multiInstanceRootExecution == null && currentExecution.getParent() != null) { if (currentExecution.isMultiInstanceRoot()) { multiInstanceRootExecution = currentExecution; } else { currentExecution = currentExecution.getParent(); } } return multiInstanceRootExecution; }
protected DelegateExecution getMultiInstanceRootExecution(DelegateExecution executionEntity) { DelegateExecution multiInstanceRootExecution = null; DelegateExecution currentExecution = executionEntity; while (currentExecution != null && multiInstanceRootExecution == null && currentExecution.getParent() != null) { if (currentExecution.isMultiInstanceRoot()) { multiInstanceRootExecution = currentExecution; } else { currentExecution = currentExecution.getParent(); } } return multiInstanceRootExecution; }