Class FlowchartElementIndex
- java.lang.Object
-
- de.xima.fc.workflow.processor.logic.FlowchartElementIndex
-
- All Implemented Interfaces:
Serializable
public final class FlowchartElementIndex extends Object implements Serializable
An index of the nodes and triggers in a workflow process.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlowchartElementIndex(ProcessModel processModel)
Creates a new index for the given process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<NodeKey,NodeModel>
getNodeByUuid()
NodeModel
getNodeByUuid(ElementKey key)
NodeModel
getNodeByUuid(NodeKey key)
NodeModel
getNodeByUuid(UUID taskUuid, UUID nodeUuid)
Set<NodeKey>
getNodes()
List<NodeKey>
getNodesByType(String type)
TaskModel
getTaskByUuid(UUID uuid)
Collection<TaskModel>
getTasks()
Map<UUID,TaskModel>
getTasksByUuid()
Map<TriggerKey,TriggerModel>
getTriggerByUuid()
TriggerModel
getTriggerByUuid(ElementKey key)
TriggerModel
getTriggerByUuid(TriggerKey key)
TriggerModel
getTriggerByUuid(UUID taskUuid, UUID triggerUuid)
Set<TriggerKey>
getTriggers()
List<TriggerKey>
getTriggersByType(String type)
-
-
-
Constructor Detail
-
FlowchartElementIndex
public FlowchartElementIndex(ProcessModel processModel)
Creates a new index for the given process.- Parameters:
processModel
- Process model to index.
-
-
Method Detail
-
getNodeByUuid
public Map<NodeKey,NodeModel> getNodeByUuid()
- Returns:
- Map with all nodes, indexed by node key.
-
getNodeByUuid
public NodeModel getNodeByUuid(ElementKey key)
- Parameters:
key
- Key of the node to fetch.- Returns:
- The node with the given key in the process model.
null
when no such node exists.
-
getNodeByUuid
public NodeModel getNodeByUuid(NodeKey key)
- Parameters:
key
- Key of the node to fetch.- Returns:
- The node with the given key in the process model.
null
when no such node exists.
-
getNodeByUuid
public NodeModel getNodeByUuid(UUID taskUuid, UUID nodeUuid)
- Parameters:
taskUuid
- UUID of the task of the node to fetch.nodeUuid
- UUID of the node to fetch.- Returns:
- The node with the given UUID in the process model.
null
when no such node exists.
-
getTriggerByUuid
public Map<TriggerKey,TriggerModel> getTriggerByUuid()
- Returns:
- Map with all triggers, indexed by trigger key.
-
getTriggerByUuid
public TriggerModel getTriggerByUuid(ElementKey key)
- Parameters:
key
- Key of the trigger to fetch.- Returns:
- The trigger with the given key in the process model.
null
when no such trigger exists.
-
getTriggerByUuid
public TriggerModel getTriggerByUuid(TriggerKey key)
- Parameters:
key
- Key of the trigger to fetch.- Returns:
- The trigger with the given key in the process model.
null
when no such trigger exists.
-
getTriggerByUuid
public TriggerModel getTriggerByUuid(UUID taskUuid, UUID triggerUuid)
- Parameters:
taskUuid
- UUID of the task of the trigger to fetch.triggerUuid
- UUID of the trigger to fetch.- Returns:
- The trigger with the given UUID in the process model.
null
when no such trigger exists.
-
getTriggers
public Set<TriggerKey> getTriggers()
- Returns:
- Keys of all available triggers.
-
getTriggersByType
public List<TriggerKey> getTriggersByType(String type)
-
getTasks
public Collection<TaskModel> getTasks()
-
-