Package com.redhat.parodos.workflow.task
Class BaseWorkFlowTask
- java.lang.Object
-
- com.redhat.parodos.workflow.task.BaseWorkFlowTask
-
- All Implemented Interfaces:
WorkFlowTask,Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
- Direct Known Subclasses:
BaseAssessmentTask,BaseInfrastructureWorkFlowTask,BaseWorkFlowCheckerTask,ShellRunnerTask
public abstract class BaseWorkFlowTask extends Object implements WorkFlowTask, org.springframework.beans.factory.BeanNameAware
Base Class for a WorkFlowTask.This includes logic for getting Parameter values from the WorkContext. The bean name is used when Reading from the WorkContextDelegate as more than one WorkflowTask might have the same ParameterName
- Author:
- Luke Shannon (Github: lshannon)
-
-
Constructor Summary
Constructors Constructor Description BaseWorkFlowTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParameterValue(WorkContext workContext, String parameterName)voidsetBeanName(String name)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.redhat.parodos.workflow.task.WorkFlowTask
getAsJsonSchema, getWorkFlowTaskOutputs, getWorkFlowTaskParameters
-
-
-
-
Method Detail
-
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
getParameterValue
public String getParameterValue(WorkContext workContext, String parameterName) throws MissingParameterException
- Throws:
MissingParameterException
-
-