Class TriggerKey

    • Method Detail

      • getTaskUuid

        @Nullable
        @Deprecated
        public UUID getTaskUuid()
        Deprecated.
        Not used anymore, just the getUuid() already uniquely identifies the trigger. This method will most likely return null.
        Gets the legacy task UUID, if available. This was used in older versions, but now only exists for backwards compatibility. The trigger UUID is already unique within the workflow, so the task UUID is not needed anymore.
        Returns:
        The legacy task UUID if available, null otherwise.
      • setTaskUuid

        public void setTaskUuid​(UUID taskUuid)
        Deprecated.
        Not used anymore, just the getUuid() already uniquely identifies the trigger.
        Sets the legacy task UUID. This was used in older versions, but now only exists for backwards compatibility. The trigger UUID is already unique within the workflow, so the task UUID is not needed anymore.
        Parameters:
        taskUuid - The legacy task UUID to set, can be null.
      • getUuid

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

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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 triggerUuid)
        Parameters:
        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.
      • of

        @Deprecated
        public static TriggerKey of​(UUID taskUuid,
                                    UUID triggerUuid)
        Deprecated.
        Use of(UUID) instead, the task UUID is not needed anymore and is ignored.
        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.