Package com.redhat.parodos.workflow.task
Interface WorkFlowTask
- All Superinterfaces:
Work
- All Known Implementing Classes:
BaseAssessmentTask,BaseInfrastructureWorkFlowTask,BaseWorkFlowCheckerTask,BaseWorkFlowTask,ShellRunnerTask
Basic Contract for Work in the Infrastructure Service
- Author:
- Luke Shannon (Github: lshannon), Richard Wang (Github: richardW98)
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull List<WorkFlowTaskOutput>The expected Output/result of the Task.default @NonNull List<WorkParameter>Parameters required for the Task to execute.voidpreExecute(WorkContext workContext) method runs before @see execute()
-
Method Details
-
preExecute
method runs before @see execute()- Parameters:
workContext-
-
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
The expected Output/result of the Task.- Returns:
- List of @see WorkFlowTaskOutput
-
getAsJsonSchema
-