Class ExecutionGraphUtil


  • public class ExecutionGraphUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isReachable​(java.lang.String processDefinitionId, java.lang.String sourceElementId, java.lang.String targetElementId)
      Verifies if the element with the given source identifier can reach the element with the target identifier through following sequence flow.
      static boolean isReachable​(org.activiti.bpmn.model.Process process, org.activiti.bpmn.model.FlowNode sourceElement, org.activiti.bpmn.model.FlowNode targetElement, java.util.Set<java.lang.String> visitedElements)  
      static java.util.List<ExecutionEntity> orderFromLeafToRoot​(java.util.Collection<ExecutionEntity> executions)  
      static java.util.List<ExecutionEntity> orderFromRootToLeaf​(java.util.Collection<ExecutionEntity> executions)
      Takes in a collection of executions belonging to the same process instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutionGraphUtil

        public ExecutionGraphUtil()
    • Method Detail

      • orderFromRootToLeaf

        public static java.util.List<ExecutionEntity> orderFromRootToLeaf​(java.util.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.
      • isReachable

        public static boolean isReachable​(java.lang.String processDefinitionId,
                                          java.lang.String sourceElementId,
                                          java.lang.String targetElementId)
        Verifies if the element with the given source identifier can reach the element with the target identifier through following sequence flow.
      • isReachable

        public static boolean isReachable​(org.activiti.bpmn.model.Process process,
                                          org.activiti.bpmn.model.FlowNode sourceElement,
                                          org.activiti.bpmn.model.FlowNode targetElement,
                                          java.util.Set<java.lang.String> visitedElements)