Package de.xima.fc.workflow
Class ElementKey
- java.lang.Object
-
- de.xima.fc.workflow.ElementKey
-
- All Implemented Interfaces:
ITaskUuidProviding
,IUuidProviding
,Serializable
public final class ElementKey extends Object implements ITaskUuidProviding, IUuidProviding, Serializable
The key of a workflow element that uniquely identifies it within the context of a process. Consists of the task UUID, the element's UUID, and the element's type.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
UUID
getTaskUuid()
EWorkflowElementType
getType()
UUID
getUuid()
int
hashCode()
static ElementKey
nodeKey(UUID taskUuid, UUID uuid)
static <T extends IUuidProviding & IWorkflowElementTypeProviding>
ElementKeyof(IElementWithTask<T> element)
static ElementKey
of(EWorkflowElementType type, UUID taskUuid, UUID uuid)
static ElementKey
of(String value)
static <T extends IWorkflowElementTypeProviding & IUuidProviding>
ElementKeyof(UUID taskUuid, T element)
String
stringValue()
NodeKey
toNodeKey()
String
toString()
TriggerKey
toTriggerKey()
static ElementKey
triggerKey(UUID taskUuid, UUID uuid)
-
-
-
Method Detail
-
getTaskUuid
public UUID getTaskUuid()
- Specified by:
getTaskUuid
in interfaceITaskUuidProviding
- Returns:
- The UUID that identifies the task to which the workflow element belongs.
-
getType
public EWorkflowElementType getType()
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
stringValue
public String stringValue()
- Returns:
- A string form of this key that can be parsed by
of(String)
.
-
toNodeKey
public NodeKey toNodeKey()
-
toTriggerKey
public TriggerKey toTriggerKey()
-
nodeKey
public static ElementKey nodeKey(UUID taskUuid, UUID uuid)
-
of
public static ElementKey of(EWorkflowElementType type, UUID taskUuid, UUID uuid)
-
of
public static <T extends IUuidProviding & IWorkflowElementTypeProviding> ElementKey of(IElementWithTask<T> element)
-
of
public static ElementKey of(String value)
- Parameters:
value
- Value as obtained bystringValue()
.- Returns:
- The key represented by the given string.
-
of
public static <T extends IWorkflowElementTypeProviding & IUuidProviding> ElementKey of(UUID taskUuid, T element)
-
triggerKey
public static ElementKey triggerKey(UUID taskUuid, UUID uuid)
-
-