Interface WorkFlowTask

All Superinterfaces:
Work
All Known Implementing Classes:
BaseAssessmentTask, BaseInfrastructureWorkFlowTask, BaseWorkFlowCheckerTask, BaseWorkFlowTask, ShellRunnerTask

public interface WorkFlowTask extends Work
Basic Contract for Work in the Infrastructure Service
Author:
Luke Shannon (Github: lshannon), Richard Wang (Github: richardW98)
  • Method Details

    • preExecute

      void preExecute(WorkContext workContext)
      method runs before @see execute()
      Parameters:
      workContext -
    • getWorkFlowTaskParameters

      @NonNull default @NonNull List<WorkParameter> getWorkFlowTaskParameters()
      Parameters required for the Task to execute. These are generally obtained from the @see WorkContext. The @see BaseWorkFlowTask has a method to simplify getting these values
      Returns:
      List of @see WorkFlowTaskParameter that need to be obtained from the @see WorkContext
    • getWorkFlowTaskOutputs

      @NonNull default @NonNull List<WorkFlowTaskOutput> getWorkFlowTaskOutputs()
      The expected Output/result of the Task.
      Returns:
      List of @see WorkFlowTaskOutput
    • getAsJsonSchema

      default HashMap<String,Map<String,Object>> getAsJsonSchema()