Interface ICreateFlowGraphParams<TData,TElement extends IWorkflowNodeTypeProviding>
-
- Type Parameters:
TData
- Type of the properties model for the node. SeeINodeHandler
.TElement
- Type of the processed node.
public interface ICreateFlowGraphParams<TData,TElement extends IWorkflowNodeTypeProviding>
Interface for the parameters that are passed tocreateFlowGraph
ofIWorkflowNodeFlowAnalyzer
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICreateFlowGraphContext<TElement>
getAnalysisContext()
Returns the context of the current analysis of potentially executed nodes.List<TElement>
getChildren()
NodeKey
getKey()
TElement
getNode()
IFlowGraphEdgeDataConfigurator
normalEdge()
Aconfigurator
for marking an edge as anormal
forward edge.IFlowGraphEdgeDataConfigurator
throwingEdge()
Retrieves aconfigurator
for marking an edge as athrowing
forward edge.
-
-
-
Method Detail
-
getAnalysisContext
ICreateFlowGraphContext<TElement> getAnalysisContext()
Returns the context of the current analysis of potentially executed nodes. How children of a node are analyzed depends on the node kind - useICreateFlowGraphContext.createFlowGraph(IWorkflowNodeTypeProviding)
(or one of its variants) to start the analysis of child nodes.- Returns:
- The context of the current execution analysis.
-
getKey
NodeKey getKey()
- Returns:
- The key of the workflow node.
-
getNode
TElement getNode()
- Returns:
- The node that needs to be analyzed. The exact type of this element may be different depending on whether
the execution analysis is run on the backend data model (
WorkflowNode
) or the corresponding frontend view model.
-
normalEdge
IFlowGraphEdgeDataConfigurator normalEdge()
Aconfigurator
for marking an edge as anormal
forward edge. Intended for use with variousconnect
methods fromICreateFlowGraphContext
.Intended as an argument to be passed to the various
connect
methods fromICreateFlowGraphContext
. You should NOT reuse the return value of this method, call it once for each call toconnect
, e.g.:ctx.connect(from, to, params.normalEdge())}
- Returns:
- A configurator for connecting nodes with normal edges.
- Since:
- 8.0.0
-
throwingEdge
IFlowGraphEdgeDataConfigurator throwingEdge()
Retrieves aconfigurator
for marking an edge as athrowing
forward edge.Intended as an argument to be passed to the various
connect
methods fromICreateFlowGraphContext
. You should NOT reuse the return value of this method, call it once for each call toconnect
, e.g.: *ctx.connect(from, to, params.throwingEdge())
- Returns:
- A configurator for connecting nodes with throwing edges.
- Since:
- 8.0.0
-
-