Class FlowStep


  • public class FlowStep
    extends Object
    Linkage between a workflow step and some CurationTasks.
    • Field Detail

      • step

        public final String step
        Name of this workflow step.
      • queue

        public final String queue
        Queue on which to run curation tasks, or null for immediate run.
      • tasks

        public final List<Task> tasks
        Curation tasks to be run in this workflow step.
    • Constructor Detail

      • FlowStep

        public FlowStep​(@NotNull
                        @NotNull String name,
                        String queue)
        Create a set of curation tasks to be linked to a named workflow step. If the name of a curation task queue is supplied, the tasks will be queued; otherwise they will execute as the workflow item is passing through the linked workflow step.
        Parameters:
        name - name of the workflow step.
        queue - name of the associated curation queue in which tasks will run, or null if these tasks should execute immediately.
    • Method Detail

      • addTask

        public void addTask​(@NotNull
                            @NotNull Task task)
        Associate a curation task with the linked workflow step.
        Parameters:
        task - a curation task configuration to be applied in this step.