Class TriggerKey

    • Constructor Detail

      • 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 Detail

      • getTaskUuid

        @NotNull
        public @NotNull UUID getTaskUuid()
        Specified by:
        getTaskUuid in interface ITaskUuidProviding
        Returns:
        UUID of the task to which the trigger belongs.
      • 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.
      • 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.