Package org.activiti.engine.impl.util
Class ExecutionGraphUtil
- java.lang.Object
-
- org.activiti.engine.impl.util.ExecutionGraphUtil
-
public class ExecutionGraphUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ExecutionGraphUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisReachable(String processDefinitionId, String sourceElementId, String targetElementId)Verifies if the element with the given source identifier can reach the element with the target identifier through following sequence flow.static booleanisReachable(Process process, FlowNode sourceElement, FlowNode targetElement, Set<String> visitedElements)static List<ExecutionEntity>orderFromLeafToRoot(Collection<ExecutionEntity> executions)static List<ExecutionEntity>orderFromRootToLeaf(Collection<ExecutionEntity> executions)Takes in a collection of executions belonging to the same process instance.
-
-
-
Method Detail
-
orderFromRootToLeaf
public static List<ExecutionEntity> orderFromRootToLeaf(Collection<ExecutionEntity> executions)
Takes in a collection of executions belonging to the same process instance. Orders the executions in a list, first elements are the leaf, last element is the root elements.
-
orderFromLeafToRoot
public static List<ExecutionEntity> orderFromLeafToRoot(Collection<ExecutionEntity> executions)
-
isReachable
public static boolean isReachable(String processDefinitionId, String sourceElementId, String targetElementId)
Verifies if the element with the given source identifier can reach the element with the target identifier through following sequence flow.
-
-