Class WorkflowElementIndex
java.lang.Object
de.xima.fc.workflow.processor.model.WorkflowElementIndex
Given a
WorkflowTask
or WorkflowProcess
, contains various maps of WorkflowNode
s for quickly
accessing the nodes by a certain index.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetNodeByUuid
(ElementKey key) getNodeByUuid
(NodeKey key) getTasks()
static WorkflowElementIndex
of
(WorkflowProcess process, Mandant client) Creates a new index with all workflow element from the given process.static WorkflowElementIndex
of
(WorkflowTask task, Mandant client) Creates a new index with all workflow element from the given task.
-
Method Details
-
getAllNodes
- Returns:
- A list of all known nodes in this element index.
-
getAllTriggers
- Returns:
- A list of all known triggers in this element index.
-
getNodeByUuid
- Parameters:
key
- Element key of a workflow node to find.- Returns:
- The workflow node with the given key, or
null
when no such node exists.
-
getNodeByUuid
- Parameters:
key
- Element key of a workflow node to find.- Returns:
- The workflow node with the given key, or
null
when no such node exists.
-
getNodesByKind
- Returns:
- All nodes, grouped by their
AWorkflowElement.getType()
.
-
getNodesByKindAndTask
public Map<String,Map<UUID, getNodesByKindAndTask()List<IWorkflowElementWithDeserializedModel<?, WorkflowNode>>>> - Returns:
- An index of all nodes, indexed first by their type and then by the task they belong to.
-
getNodesByTask
- Returns:
- All nodes, grouped by the UUID of the task they belong to.
-
getNodesByUuid
- Returns:
- All nodes , indexed by their
ElementKey
.
-
getTasks
- Returns:
- All tasks contained in this index.
-
getTriggerByUuid
- Parameters:
key
- Element key of a workflow trigger to find.- Returns:
- The workflow trigger with the given key, or
null
when no such trigger exists.
-
getTriggerByUuid
- Parameters:
key
- Element key of a workflow trigger to find.- Returns:
- The workflow trigger with the given key, or
null
when no such trigger exists.
-
getTriggersByKind
public Map<String,List<IWorkflowElementWithDeserializedModel<?, getTriggersByKind()WorkflowTrigger>>> - Returns:
- All triggers, grouped by their
AWorkflowElement.getType()
.
-
getTriggersByKindAndTask
public Map<String,Map<UUID, getTriggersByKindAndTask()List<IWorkflowElementWithDeserializedModel<?, WorkflowTrigger>>>> - Returns:
- An index of all triggers, indexed first by their type and then by the trigger they belong to.
-
getTriggersByUuid
- Returns:
- All triggers, indexed by their
ElementKey
.
-
of
Creates a new index with all workflow element from the given process.- Parameters:
process
- Workflow process to index.client
- Current client that is used to retrieve plugin trigger and node handlers.- Returns:
- A new index with all workflow element from the given process.
-
of
Creates a new index with all workflow element from the given task.- Parameters:
task
- Workflow task to index.client
- Current client that is used to retrieve plugin trigger and node handlers.- Returns:
- A new index with all workflow element from the given task.
-