Class FlowGraphFilters
- java.lang.Object
-
- de.xima.fc.workflow.FlowGraphFilters
-
public final class FlowGraphFilters extends Object
Contains some common implementations offlow graph filters.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlowGraphFilters.EdgeTypeMatchesBuilder
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowGraphFilters.EdgeTypeMatchesBuilderedgeTypeMatches()Creates a builder for configuring a generic filter that applies constraints on edge types.static FlowGraphFilter.BackwarderrorResultPredecessors()A filter for the predecessors of a node N that can provideerrororsoft errorresults to that node N.static FlowGraphFilter.GenericmatchAll()static FlowGraphFilter.GenericmatchNone()static FlowGraphFilter.BackwardsuccessResultPredecessors()A filter for the predecessors of a node N that can providesuccess resultsto that node N.
-
-
-
Method Detail
-
edgeTypeMatches
public static FlowGraphFilters.EdgeTypeMatchesBuilder edgeTypeMatches()
Creates a builder for configuring a generic filter that applies constraints on edge types. Initially, no constraints are present in the builder.Buildingan empty builder is equivalent tomatchAll().- Returns:
- A builder for configuring a
filterthat applies constraints to theedge typesofflow graph edges. - Since:
- 8.1.0
- See Also:
, for the bit flags of the edge types.
-
errorResultPredecessors
public static FlowGraphFilter.Backward errorResultPredecessors()
A filter for the predecessors of a node N that can provideerrororsoft errorresults to that node N.Formally speaking, the error result predecessors of a node N is the set of nodes {P}, such that, if P completes abruptly, a path to N exists, but excludes those nodes P that are only reachable by backtracking loops (as results from another node in the same loop are always resolved to the latest result from that loop iteration).
Constrains the initial edge to be a
throwing completionedge, and does not allow anybackwardsedgesownedby any parent of node N.- Returns:
- A filter for computing the normal completion predecessors of a node that are reachable without backwards edges.
-
matchAll
public static FlowGraphFilter.Generic matchAll()
- Returns:
- A filter that does not impose any constraints and allows all edges and nodes.
-
matchNone
public static FlowGraphFilter.Generic matchNone()
- Returns:
- A filter that does not allow any edges and nodes.
-
successResultPredecessors
public static FlowGraphFilter.Backward successResultPredecessors()
A filter for the predecessors of a node N that can providesuccess resultsto that node N.Formally speaking, the success result predecessors of a node N is the set of nodes {P}, such that, if P completes normally, a path to N exists, but excludes those nodes P that are only reachable by
backtracking(as results from another node in the same loop are always resolved to the latest result from that loop iteration).Constrains the initial edge to be a
normal completionedge, and does not allow anybackwardsedgesownedby any parent of node N.- Returns:
- A filter for computing the normal completion predecessors of a node that are reachable without backwards edges.
-
-