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 booleanequals(Object obj)UUIDgetTaskUuid()EWorkflowElementTypegetType()UUIDgetUuid()inthashCode()static ElementKeynodeKey(UUID taskUuid, UUID uuid)static <T extends IUuidProviding & IWorkflowElementTypeProviding>
ElementKeyof(IElementWithTask<T> element)static ElementKeyof(EWorkflowElementType type, UUID taskUuid, UUID uuid)static ElementKeyof(String value)static <T extends IWorkflowElementTypeProviding & IUuidProviding>
ElementKeyof(UUID taskUuid, T element)StringstringValue()NodeKeytoNodeKey()StringtoString()TriggerKeytoTriggerKey()static ElementKeytriggerKey(UUID taskUuid, UUID uuid)
-
-
-
Method Detail
-
getTaskUuid
public UUID getTaskUuid()
- Specified by:
getTaskUuidin interfaceITaskUuidProviding- Returns:
- The UUID that identifies the task to which the workflow element belongs.
-
getType
public EWorkflowElementType getType()
-
getUuid
public UUID getUuid()
- Specified by:
getUuidin 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)
-
-