Package de.xima.fc.workflow
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 Summary
ConstructorsConstructorDescriptionFor JSON deserialization.TriggerKey
(UUID taskUuid, UUID triggerUuid) Creates a new trigger key for a trigger in the given task. -
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull UUID
getUuid()
int
hashCode()
static TriggerKey
of
(WorkflowTrigger trigger) static TriggerKey
static TriggerKey
void
setTaskUuid
(UUID taskUuid) void
toString()
-
Constructor Details
-
TriggerKey
public TriggerKey()For JSON deserialization. -
TriggerKey
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
-
getTaskUuid
- Specified by:
getTaskUuid
in interfaceITaskUuidProviding
- Returns:
- UUID of the task to which the trigger belongs.
-
getUuid
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- UUID of the trigger.
-
hashCode
public int hashCode() -
setTaskUuid
- Parameters:
taskUuid
- UUID of the task to which the trigger belongs.
-
setUuid
- Parameters:
uuid
- UUID of the trigger.
-
stringValue
- Returns:
- A string form of this key that can be parsed by
of(String)
.
-
toElementKey
- Returns:
- An element key for this trigger key.
-
toString
-
of
- Parameters:
value
- Value as obtained bystringValue()
.- Returns:
- The key represented by the given string.
-
of
- 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
- Parameters:
trigger
- Trigger for which to get a key.- Returns:
- A new trigger key for a trigger in the given task.
-