Class TriggerKey

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

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

    • TriggerKey

      public TriggerKey()
      For JSON deserialization.
    • TriggerKey

      public TriggerKey(UUID taskUuid, UUID triggerUuid)
      Creates a new trigger key for a trigger in the given task.
      Parameters:
      taskUuid - UUID of the task to which the trigger belongs.
      triggerUuid - UUID of the trigger.
  • 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 trigger belongs.
    • getUuid

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

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

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

      public void setUuid(UUID uuid)
      Parameters:
      uuid - UUID of the trigger.
    • stringValue

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

      public ElementKey toElementKey()
      Returns:
      An element key for this trigger key.
    • toString

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

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

      public static TriggerKey of(UUID taskUuid, UUID triggerUuid)
      Parameters:
      taskUuid - UUID of the task to which the trigger belongs.
      triggerUuid - UUID of the trigger.
      Returns:
      A new trigger key for a trigger in the given task.
    • of

      public static TriggerKey of(WorkflowTrigger trigger)
      Parameters:
      trigger - Trigger for which to get a key.
      Returns:
      A new trigger key for a trigger in the given task.