Class ElementKey
java.lang.Object
de.xima.fc.workflow.ElementKey
- All Implemented Interfaces:
IUuidProviding, Serializable
The key of a workflow element that uniquely identifies it within the context of a process. Consists of the element's
UUID, and the element's type.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.getType()getUuid()inthashCode()static ElementKeyCreates an element key for a node with the given task and node UUIDs.static ElementKeyDeprecated.UsenodeKey(UUID)instead, the task UUID is not needed anymore and is ignored.static <T extends IUuidProviding & IWorkflowElementTypeProviding>
ElementKeyof(IElementWithTask<T> element) static ElementKeyof(EWorkflowElementType type, UUID uuid) Creates an element key for an element with the given type and trigger UUID.static ElementKeyof(EWorkflowElementType type, UUID taskUuid, UUID uuid) Deprecated.Useof(EWorkflowElementType, UUID)instead, the task UUID is not needed anymore and is ignored.static ElementKeystatic <T extends IWorkflowElementTypeProviding & IUuidProviding>
ElementKeyDeprecated.Useof(IWorkflowElementTypeProviding)instead, the task UUID is not needed anymore and is ignored.static <T extends IWorkflowElementTypeProviding & IUuidProviding>
ElementKeyof(T element) Creates an element key for the given element.voidsetTaskUuid(UUID taskUuid) Deprecated.Not used anymore, just thegetUuid()already uniquely identifies the element.toString()static ElementKeytriggerKey(UUID uuid) Creates an element key for a trigger with the given trigger UUIDs.static ElementKeytriggerKey(UUID taskUuid, UUID uuid) Deprecated.UsetriggerKey(UUID)instead, the task UUID is not needed anymore and is ignored.
-
Method Details
-
equals
-
getTaskUuid
Deprecated.Not used anymore, just thegetUuid()already uniquely identifies the element. This method will most likely return null.Gets the legacy task UUID, if available. This was used in older versions, but now only exists for backwards compatibility. The element UUID is already unique within the workflow, so the task UUID is not needed anymore.- Returns:
- The legacy task UUID if available, null otherwise.
-
setTaskUuid
Deprecated.Not used anymore, just thegetUuid()already uniquely identifies the element.Sets the legacy task UUID. This was used in older versions, but now only exists for backwards compatibility. The element UUID is already unique within the workflow, so the task UUID is not needed anymore.- Parameters:
taskUuid- The legacy task UUID to set, can be null.
-
getType
-
getUuid
- Specified by:
getUuidin interfaceIUuidProviding- Returns:
- The UUID that identifies this instance.
-
hashCode
-
stringValue
- Returns:
- A string form of this key that can be parsed by
of(String).
-
toNodeKey
-
toString
-
toTriggerKey
-
nodeKey
Creates an element key for a node with the given task and node UUIDs.- Parameters:
uuid- UUID of the node.- Returns:
- An element key for a node with the given task and node UUIDs.
-
nodeKey
Deprecated.UsenodeKey(UUID)instead, the task UUID is not needed anymore and is ignored.Creates an element key for a node with the given task and node UUIDs.- Parameters:
taskUuid- UUID of the task to which the node belongs.uuid- UUID of the node.- Returns:
- An element key for a node with the given task and node UUIDs.
-
of
Creates an element key for an element with the given type and trigger UUID.- Parameters:
type- The type of the element.uuid- UUID of the element.- Returns:
- An element key for an element with the given type, and task and trigger UUIDs.
-
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
Creates an element key for the given element.- Type Parameters:
T- The type of the element, which must implement eitherIWorkflowNodeTypeProvidingorIWorkflowTriggerTypeProviding.- Parameters:
element- The element for which to create the key. Must implement eitherIWorkflowNodeTypeProvidingorIWorkflowTriggerTypeProviding.- Returns:
- An element key for the given element.
-
of
@Deprecated public static <T extends IWorkflowElementTypeProviding & IUuidProviding> ElementKey of(UUID taskUuid, T element) Deprecated.Useof(IWorkflowElementTypeProviding)instead, the task UUID is not needed anymore and is ignored.Creates an element key for the given element.- Type Parameters:
T- The type of the element, which must implement eitherIWorkflowNodeTypeProvidingorIWorkflowTriggerTypeProviding.- Parameters:
taskUuid- UUID of the task to which the element belongs.element- The element for which to create the key. Must implement eitherIWorkflowNodeTypeProvidingorIWorkflowTriggerTypeProviding.- Returns:
- An element key for the given element.
-
of
Deprecated.Useof(EWorkflowElementType, UUID)instead, the task UUID is not needed anymore and is ignored.Creates an element key for an element with the given type and trigger UUID.- Parameters:
type- The type of the element.taskUuid- UUID of the task to which the element belongs.uuid- UUID of the element.- Returns:
- An element key for an element with the given type, and task and trigger UUIDs.
-
triggerKey
Creates an element key for a trigger with the given trigger UUIDs.- Parameters:
uuid- UUID of the trigger.- Returns:
- An element key for a trigger with the given task and trigger UUIDs.
-
triggerKey
Deprecated.UsetriggerKey(UUID)instead, the task UUID is not needed anymore and is ignored.Creates an element key for a trigger with the given trigger UUIDs.- Parameters:
taskUuid- UUID of the task to which the trigger belongs.uuid- UUID of the trigger.- Returns:
- An element key for a trigger with the given task and trigger UUIDs.
-
getUuid()already uniquely identifies the element.