Class NodeKey

java.lang.Object
de.xima.fc.workflow.NodeKey
All Implemented Interfaces:
ITaskUuidProviding, IUuidProviding, Serializable

public final class NodeKey extends Object implements ITaskUuidProviding, IUuidProviding, Serializable
The key of a workflow node that uniquely identifies it within the context of a process. Consists of the task UUID, and the node's UUID.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getTaskUuid

      @NotNull public @NotNull UUID getTaskUuid()
      Specified by:
      getTaskUuid in interface ITaskUuidProviding
      Returns:
      UUID of the task to which the node belongs.
    • getUuid

      public UUID getUuid()
      Specified by:
      getUuid in interface IUuidProviding
      Returns:
      UUID of the node.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setTaskUuid

      public void setTaskUuid(UUID taskUuid)
      Parameters:
      taskUuid - UUID of the task to which the node belongs.
    • setUuid

      public void setUuid(UUID uuid)
      Parameters:
      uuid - UUID of the node.
    • toElementKey

      public ElementKey toElementKey()
      Returns:
      An element key for this node key.
    • stringValue

      public String stringValue()
      Returns:
      A string form of this key that can be parsed by of(String).
    • of

      public static NodeKey of(String value)
      Parameters:
      value - Value as obtained by stringValue().
      Returns:
      The key represented by the given string.
    • toString

      public String toString()
      Converts this node with name to a string reflecting the data of this POJO. Required for the omnifaces.SelectItemsConverter
      Overrides:
      toString in class Object
    • of

      public static NodeKey of(WorkflowNode node)
      Parameters:
      node - Node for which to get a key.
      Returns:
      A new node key for a node in the given task.
    • of

      public static NodeKey of(UUID taskUuid, UUID nodeUuid)
      Parameters:
      taskUuid - UUID of the task to which the node belongs.
      nodeUuid - UUID of the node.
      Returns:
      A new node key for a node in the given task.