Builder

class Builder

Constructors

Builder
Link copied to clipboard
void Builder(TaskNode.GraphType type)

Functions

build
Link copied to clipboard
TaskNode.TaskGraph build()
withLoop
Link copied to clipboard

Adds a sub-graph of tasks that may loop if any of them return . The sub-graph will run after any previously added tasks and before any subsequently added ones. If the final task in the sub-graph returns the tasks in the sub-graph will be run again. If it returns the sub-graph will exit.

withTask
Link copied to clipboard

Adds a task to the current graph.

TaskNode.Builder withTask(TaskNode task)
TaskNode.Builder withTask(String name, Class<? extends TaskimplementingClass)