Class TreePath

java.lang.Object
io.camunda.webapps.operate.TreePath

public class TreePath extends Object
Class represents call tree path to store sequence of calls in case of call activities.

PI = Process instance, FN = Flow node, FNI = Flow node instance.

If we have a process with call activity, then tree path for child process instance will be build as PI_/FN_/FNI_/PI_, for the incident in child instance we will have tree path as PI_/FN_/FNI_/PI_/FN_/FNI.

  • Constructor Details

    • TreePath

      public TreePath()
    • TreePath

      public TreePath(String treePath)
  • Method Details

    • extractFlowNodeInstanceId

      public static String extractFlowNodeInstanceId(String treePath, String currentTreePath)
    • startTreePath

      public TreePath startTreePath(String processInstanceId)
    • startTreePath

      public TreePath startTreePath(long processInstanceKey)
    • appendFlowNode

      public TreePath appendFlowNode(String newEntry)
    • appendFlowNode

      public TreePath appendFlowNode(int newEntry)
    • appendFlowNodeInstance

      public TreePath appendFlowNodeInstance(String newEntry)
    • appendFlowNodeInstance

      public TreePath appendFlowNodeInstance(long newEntry)
    • appendProcessInstance

      public TreePath appendProcessInstance(String newEntry)
    • appendProcessInstance

      public TreePath appendProcessInstance(long newEntry)
    • isEmpty

      public boolean isEmpty()
    • appendEntries

      public TreePath appendEntries(String callActivityId, String flowNodeInstanceId, String processInstanceId)
    • extractRootInstanceId

      public String extractRootInstanceId()
    • extractProcessInstanceIds

      public List<String> extractProcessInstanceIds()
    • extractFlowNodeInstanceIds

      public List<String> extractFlowNodeInstanceIds()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • removeProcessInstance

      public TreePath removeProcessInstance(String processInstanceKey)
    • processInstanceForFni

      public Optional<String> processInstanceForFni(String fniId)