@PublicAPI public class FlowChecker extends Object
Checks a TaskFlow is correct against a set of well defined rules, and attempts to hint at the problem when detected.
Modifier and Type | Class and Description |
---|---|
static class |
FlowChecker.Block
Dummy pair class containing two Task
|
static class |
FlowChecker.TaskTree
Dummy double linked Task tree structure
natural Tasks only have bottom-up links
|
Modifier and Type | Method and Description |
---|---|
static FlowError |
validate(TaskFlowJob job)
Checks if the provided Job is valid and can be scheduled.
|
static FlowError |
validate(TaskFlowJob job,
List<FlowChecker.Block> blocks)
Checks if the provided Job is valid and can be scheduled.
|
public static FlowError validate(TaskFlowJob job)
A call to this method should have no side-effect on the provided job, nor the tasks contained.
job
- the job to validatepublic static FlowError validate(TaskFlowJob job, List<FlowChecker.Block> blocks)
A call to this method should have no side-effect on the provided job, nor the tasks contained.
job
- the job to validateblocks
- empty list that will be filled by this method with
the validated task blocks (pair of tasks) detected by the validator