Class FlowchartElementIndex

java.lang.Object
de.xima.fc.workflow.processor.logic.FlowchartElementIndex
All Implemented Interfaces:
Serializable

public final class FlowchartElementIndex extends Object implements Serializable
An index of the nodes and triggers in a workflow process.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • FlowchartElementIndex

      public FlowchartElementIndex(ProcessModel processModel)
      Creates a new index for the given process.
      Parameters:
      processModel - Process model to index.
  • Method Details

    • getNodeByUuid

      public Map<NodeKey,NodeModel> getNodeByUuid()
      Returns:
      Map with all nodes, indexed by node key.
    • getNodeByUuid

      public NodeModel getNodeByUuid(ElementKey key)
      Parameters:
      key - Key of the node to fetch.
      Returns:
      The node with the given key in the process model. null when no such node exists.
    • getNodeByUuid

      public NodeModel getNodeByUuid(NodeKey key)
      Parameters:
      key - Key of the node to fetch.
      Returns:
      The node with the given key in the process model. null when no such node exists.
    • getNodeByUuid

      public NodeModel getNodeByUuid(UUID taskUuid, UUID nodeUuid)
      Parameters:
      taskUuid - UUID of the task of the node to fetch.
      nodeUuid - UUID of the node to fetch.
      Returns:
      The node with the given UUID in the process model. null when no such node exists.
    • getNodes

      public Set<NodeKey> getNodes()
      Returns:
      Keys of all available nodes.
    • getNodesByType

      public List<NodeKey> getNodesByType(String type)
    • getTriggerByUuid

      public Map<TriggerKey,TriggerModel> getTriggerByUuid()
      Returns:
      Map with all triggers, indexed by trigger key.
    • getTriggerByUuid

      public TriggerModel getTriggerByUuid(ElementKey key)
      Parameters:
      key - Key of the trigger to fetch.
      Returns:
      The trigger with the given key in the process model. null when no such trigger exists.
    • getTriggerByUuid

      public TriggerModel getTriggerByUuid(TriggerKey key)
      Parameters:
      key - Key of the trigger to fetch.
      Returns:
      The trigger with the given key in the process model. null when no such trigger exists.
    • getTriggerByUuid

      public TriggerModel getTriggerByUuid(UUID taskUuid, UUID triggerUuid)
      Parameters:
      taskUuid - UUID of the task of the trigger to fetch.
      triggerUuid - UUID of the trigger to fetch.
      Returns:
      The trigger with the given UUID in the process model. null when no such trigger exists.
    • getTriggers

      public Set<TriggerKey> getTriggers()
      Returns:
      Keys of all available triggers.
    • getTriggersByType

      public List<TriggerKey> getTriggersByType(String type)
    • getTasksByUuid

      public Map<UUID,TaskModel> getTasksByUuid()
    • getTaskByUuid

      @Nullable public TaskModel getTaskByUuid(UUID uuid)
    • getTasks

      public Collection<TaskModel> getTasks()