Package de.xima.fc.workflow
Class NodeKey
- java.lang.Object
-
- de.xima.fc.workflow.NodeKey
-
- All Implemented Interfaces:
ITaskUuidProviding
,IUuidProviding
,Serializable
public final class NodeKey extends Object implements ITaskUuidProviding, IUuidProviding, Serializable
The key of a workflow node that uniquely identifies it within the context of a process. Consists of the task UUID, and the node's UUID.- 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)
@NotNull UUID
getTaskUuid()
UUID
getUuid()
int
hashCode()
static NodeKey
of(WorkflowNode node)
static NodeKey
of(String value)
static NodeKey
of(UUID taskUuid, UUID nodeUuid)
void
setTaskUuid(UUID taskUuid)
void
setUuid(UUID uuid)
String
stringValue()
ElementKey
toElementKey()
String
toString()
Converts this node with name to a string reflecting the data of this POJO.
-
-
-
Method Detail
-
getTaskUuid
@NotNull public @NotNull UUID getTaskUuid()
- Specified by:
getTaskUuid
in interfaceITaskUuidProviding
- Returns:
- UUID of the task to which the node belongs.
-
getUuid
public UUID getUuid()
- Specified by:
getUuid
in interfaceIUuidProviding
- Returns:
- UUID of the node.
-
setTaskUuid
public void setTaskUuid(UUID taskUuid)
- Parameters:
taskUuid
- UUID of the task to which the node belongs.
-
setUuid
public void setUuid(UUID uuid)
- Parameters:
uuid
- UUID of the node.
-
toElementKey
public ElementKey toElementKey()
- Returns:
- An element key for this node key.
-
stringValue
public String stringValue()
- Returns:
- A string form of this key that can be parsed by
of(String)
.
-
of
public static NodeKey of(String value)
- Parameters:
value
- Value as obtained bystringValue()
.- Returns:
- The key represented by the given string.
-
toString
public String toString()
Converts this node with name to a string reflecting the data of this POJO. Required for theomnifaces.SelectItemsConverter
-
of
public static NodeKey of(WorkflowNode node)
- Parameters:
node
- Node for which to get a key.- Returns:
- A new node key for a node in the given task.
-
-