Package 

Class TaskNode.Builder

    • Method Detail

      • withTask

         TaskNode.Builder withTask(String name, Class<out Task> implementingClass)

        Adds a task to the current graph.

        Parameters:
        name - the name of the task.
        implementingClass - the class that implements the task.
      • withLoop

         TaskNode.Builder withLoop(Consumer<TaskNode.Builder> subGraph)

        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.

        Parameters:
        subGraph - a lambda that defines the tasks for the sub-graph by adding them to a @ { link Builder .