Class 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:
    Serialized Form
    • Constructor Detail

      • FlowchartElementIndex

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

      • 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.
      • 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.
      • getTaskByUuid

        @Nullable
        public TaskModel getTaskByUuid​(UUID uuid)