Class FlowchartElementIndex
java.lang.Object
de.xima.fc.workflow.processor.logic.FlowchartElementIndex
- All Implemented Interfaces:
Serializable
An index of the nodes and triggers in a workflow process.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowchartElementIndex(ProcessModel processModel) Creates a new index for the given process. -
Method Summary
Modifier and TypeMethodDescriptiongetNodeByUuid(ElementKey key) getNodeByUuid(NodeKey key) getNodeByUuid(UUID nodeUuid) Gets the map from a node to the parent of that node.getNodes()getNodesByType(String type) Gets all nodes of a certaintype.getParent(ElementKey key) getParents(ElementKey start, boolean includeStartNode) getParents(NodeKey start, boolean includeStartNode) getParentUuids(ElementKey start, boolean includeStartNode) getParentUuids(NodeKey start, boolean includeStartNode) getTaskByNode(NodeKey nodeKey) Gets the task that contains a node.getTaskByTrigger(TriggerKey triggerKey) Gets the task that contains a trigger.getTaskByUuid(UUID uuid) Gets a task by its UUID.getTasks()Gets all available tasks.Gets the mapping from the UIUD of a task to that task.getTriggerByUuid(UUID triggerUuid) getTriggersByType(String type) Gets all triggers of a certaintype.booleanChecks if a node is a parent of another node.
-
Constructor Details
-
FlowchartElementIndex
Creates a new index for the given process.- Parameters:
processModel- Process model to index.
-
-
Method Details
-
getNodeByUuid
-
getNodeByUuid
- Parameters:
key- Key of the node to fetch.- Returns:
- The node with the given key in the process model.
nullwhen no such node exists.
-
getNodeByUuid
-
getNodeByUuid
-
getNodeParentMap
-
getNodes
-
getNodesByType
-
getParent
- Parameters:
key- A node to check.- Returns:
- The parent of the node, or null when it is a root node.
-
getParent
-
getParentUuids
- Parameters:
start- Start node.includeStartNode- Whether to include the start node in the iterable.- Returns:
- An iterable over all parents of the start node.
-
getParentUuids
-
getParents
- Parameters:
start- Start node.includeStartNode- Whether to include the start node in the iterable.- Returns:
- An iterable over all parents of the start node.
-
getParents
-
getTaskByNode
-
getTaskByTrigger
Gets the task that contains a trigger.- Parameters:
triggerKey- Key of the trigger to check.- Returns:
- The task that contains the trigger, or null if the trigger does not exist, or does not belong to any task.
-
getTaskByUuid
-
getTasks
-
getTasksByUuid
-
getTriggerByUuid
- Returns:
- Map with all triggers, indexed by trigger key.
-
getTriggerByUuid
- Parameters:
key- Key of the trigger to fetch.- Returns:
- The trigger with the given key in the process model.
nullwhen no such trigger exists.
-
getTriggerByUuid
- Parameters:
key- Key of the trigger to fetch.- Returns:
- The trigger with the given key in the process model.
nullwhen no such trigger exists.
-
getTriggerByUuid
- Parameters:
triggerUuid- UUID of the trigger to fetch.- Returns:
- The trigger with the given UUID in the process model.
nullwhen no such trigger exists.
-
getTriggers
- Returns:
- Keys of all available triggers.
-
getTriggersByType
Gets all triggers of a certaintype.- Parameters:
type- Trigger type to search for.- Returns:
- A list with all triggers of the given type.
-
isParent
-