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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description TriggerKey()For JSON deserialization.TriggerKey(UUID taskUuid, UUID triggerUuid)Creates a new trigger key for a trigger in the given task. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)@NotNull UUIDgetTaskUuid()UUIDgetUuid()inthashCode()static TriggerKeyof(WorkflowTrigger trigger)static TriggerKeyof(String value)static TriggerKeyof(UUID taskUuid, UUID triggerUuid)voidsetTaskUuid(UUID taskUuid)voidsetUuid(UUID uuid)StringstringValue()ElementKeytoElementKey()StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getTaskUuid
@NotNull public @NotNull UUID getTaskUuid()
- Specified by:
 getTaskUuidin interfaceITaskUuidProviding- Returns:
 - UUID of the task to which the trigger belongs.
 
 
- 
getUuid
public UUID getUuid()
- Specified by:
 getUuidin interfaceIUuidProviding- Returns:
 - UUID of the trigger.
 
 
- 
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 bystringValue().- 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.
 
 
 - 
 
 -