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:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getType()
getUuid()
int
hashCode()
static ElementKey
static <T extends IUuidProviding & IWorkflowElementTypeProviding>
ElementKeyof
(IElementWithTask<T> element) static ElementKey
of
(EWorkflowElementType type, UUID taskUuid, UUID uuid) static ElementKey
static <T extends IWorkflowElementTypeProviding & IUuidProviding>
ElementKeytoString()
static ElementKey
triggerKey
(UUID taskUuid, UUID uuid)
-
Method Details
-
equals
-
getTaskUuid
- Specified by:
getTaskUuid
in interfaceITaskUuidProviding
- Returns:
- The UUID that identifies the task to which the workflow element belongs.
-
getType
-
getUuid
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- The UUID that identifies this instance.
-
hashCode
public int hashCode() -
stringValue
- Returns:
- A string form of this key that can be parsed by
of(String)
.
-
toNodeKey
-
toString
-
toTriggerKey
-
nodeKey
-
of
-
of
public static <T extends IUuidProviding & IWorkflowElementTypeProviding> ElementKey of(IElementWithTask<T> element) -
of
- 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
-