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 IFlowGraphEdgeDataConfigurator
controlTransferBackwardsEdge()
IFlowGraphEdgeDataConfigurator
controlTransferEdge()
ICreateFlowGraphContext<TElement>
getAnalysisContext()
Returns the context of the current analysis of potentially executed nodes.List<TElement>
getChildren()
TData
getData()
NodeKey
getKey()
TElement
getNode()
The node that needs to be analyzed.IVirtualFlowGraphNode
newVirtualNode(EVirtualFlowGraphNodePurpose purpose)
Creates aIVirtualFlowGraphNode
and adds its to the flow graph.IFlowGraphEdgeDataConfigurator
normalBackwardsEdge()
IFlowGraphEdgeDataConfigurator
normalEdge()
IFlowGraphEdgeDataConfigurator
returningBackwardsEdge()
IFlowGraphEdgeDataConfigurator
returningEdge()
IFlowGraphEdgeDataConfigurator
throwingBackwardsEdge()
IFlowGraphEdgeDataConfigurator
throwingEdge()
-
-
-
Method Detail
-
controlTransferBackwardsEdge
IFlowGraphEdgeDataConfigurator controlTransferBackwardsEdge()
Aconfigurator
for marking an edge as acontrol transfer
backwards
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.controlTransferBackwardsEdge())
- Returns:
- A configurator for connecting nodes with throwing backwards edges.
- Since:
- 8.0.0
-
controlTransferEdge
IFlowGraphEdgeDataConfigurator controlTransferEdge()
Retrieves aconfigurator
for marking an edge as acontrol transfer
forward (non-backwards
) 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.controlTransferEdge())
- Returns:
- A configurator for connecting nodes with throwing edges.
- Since:
- 8.0.0
-
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 - usecreateFlowGraph
(or one of its variants) to start the analysis of child nodes.- Returns:
- The context of the current execution analysis.
-
getData
TData getData()
- Returns:
- The custom data of the given node.
-
getKey
NodeKey getKey()
- Returns:
- The key of the workflow node.
-
getNode
TElement getNode()
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.- Returns:
- The node to be analyzed.
-
newVirtualNode
IVirtualFlowGraphNode newVirtualNode(EVirtualFlowGraphNodePurpose purpose)
Creates aIVirtualFlowGraphNode
and adds its to the flow graph.- Parameters:
purpose
- The purpose of the virtual flow graph node.- Returns:
- The newly creates virtual node.
- Since:
- 8.1.0
-
normalBackwardsEdge
IFlowGraphEdgeDataConfigurator normalBackwardsEdge()
Aconfigurator
for marking an edge as anormal
backwards
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.normalBackwardsEdge())
- Returns:
- A configurator for connecting nodes with normal backwards edges.
- Since:
- 8.0.0
-
normalEdge
IFlowGraphEdgeDataConfigurator normalEdge()
Aconfigurator
for marking an edge as anormal
forward (non-backwards
) 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
-
returningBackwardsEdge
IFlowGraphEdgeDataConfigurator returningBackwardsEdge()
Aconfigurator
for marking an edge as areturning
backwards
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.returningBackwardsEdge())
- Returns:
- A configurator for connecting nodes with throwing backwards edges.
- Since:
- 8.0.0
-
returningEdge
IFlowGraphEdgeDataConfigurator returningEdge()
Retrieves aconfigurator
for marking an edge as areturning
forward (non-backwards
) 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.returningEdge())
- Returns:
- A configurator for connecting nodes with throwing edges.
- Since:
- 8.0.0
-
throwingBackwardsEdge
IFlowGraphEdgeDataConfigurator throwingBackwardsEdge()
Aconfigurator
for marking an edge as athrowing
backwards
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.throwingBackwardsEdge())
- Returns:
- A configurator for connecting nodes with throwing backwards edges.
- Since:
- 8.0.0
-
throwingEdge
IFlowGraphEdgeDataConfigurator throwingEdge()
Retrieves aconfigurator
for marking an edge as athrowing
forward (non-backwards
) 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
-
-