Class FlowStep

java.lang.Object
org.dspace.workflow.FlowStep

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

    Fields
    Modifier and Type
    Field
    Description
    final String
    Queue on which to run curation tasks, or null for immediate run.
    final String
    Name of this workflow step.
    final List<Task>
    Curation tasks to be run in this workflow step.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowStep(@NotNull String name, String queue)
    Create a set of curation tasks to be linked to a named workflow step.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTask(@NotNull Task task)
    Associate a curation task with the linked workflow step.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • 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 Details

    • 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.