Class ShellRunnerTask
- java.lang.Object
-
- com.redhat.parodos.workflow.task.BaseWorkFlowTask
-
- com.redhat.parodos.workflow.task.shell.ShellRunnerTask
-
- All Implemented Interfaces:
WorkFlowTask,Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class ShellRunnerTask extends BaseWorkFlowTask
ShellRunnerTask takes a script and an optional env and runs them to completion and returns the exit code. For exit code 0 the return status should be successful and for anything else it should be a failure.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_EXECUTION_TIMEOUT_IN_SECONDS
-
Constructor Summary
Constructors Constructor Description ShellRunnerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkReportexecute(WorkContext workContext)-
Methods inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
getParameterValue, setBeanName
-
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
-
-
-
-
Field Detail
-
DEFAULT_EXECUTION_TIMEOUT_IN_SECONDS
public static final int DEFAULT_EXECUTION_TIMEOUT_IN_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public WorkReport execute(WorkContext workContext)
-
-