Class TaskStep

  • All Implemented Interfaces:
    Step

    public class TaskStep
    extends AbstractStep
    Provides functionality for a Step that will execute a Task that will emit a single value Created by Navid Mitchell on 3/19/20
    • Constructor Detail

      • TaskStep

        public TaskStep​(int sequence,
                        Task<?> task)
      • TaskStep

        public TaskStep​(int sequence,
                        Task<?> task,
                        boolean storeResult)
      • TaskStep

        public TaskStep​(int sequence,
                        Task<?> task,
                        boolean storeResult,
                        java.lang.String resultName)
        Create a Step that will execute a Task that will emit a single value
        Parameters:
        task - for this step
        storeResult - determines if the result of the Task should be stored in the execution context
        resultName - the name of the result to use when storing the result in the execution context
    • Method Detail

      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Step
        The description comes from the Task or JobDefinition that this step was created for
        Returns:
        the description of this Step
      • assemble

        public org.reactivestreams.Publisher<Result<?>> assemble​(org.springframework.context.support.GenericApplicationContext applicationContext,
                                                                 ResultOptions options)
        Description copied from interface: Step
        Prepares the Step for execution.
        Parameters:
        applicationContext - the execution context that will be used for this Step
        options - the ResultOptions to use when executing the JobDefinition this will determine the ResultType's that you will receive from the emitted Result's
        Returns:
        a Publisher that when subscribed to will create the result for this Step