Class BaseWorkFlowCheckerTask
java.lang.Object
com.redhat.parodos.workflow.task.BaseWorkFlowTask
com.redhat.parodos.workflow.task.checker.BaseWorkFlowCheckerTask
- All Implemented Interfaces:
WorkFlowTask,Work,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
Basic Contract for checking if a manual process initiated by a @see WorkFlowTask has
been completed
- Author:
- Luke Shannon (Github: lshannon), Richard Wang (Github: richardW98)
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedBaseWorkFlowCheckerTask(WorkFlow escalationWorkflow, long expectedSlaBeforeEscalationInSeconds) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract WorkReportcheckWorkFlowStatus(WorkContext context) Method to check if a WorkFlow that is in a holding status, i.e: waiting for an external process to occur, has achieved its status and can trigger the next WorkFlowexecute(WorkContext workContext) By default, if no execute method is defined, the checkWorkFlowStatus method will be executed by the WorkFlow enginegetType()Methods inherited from class com.redhat.parodos.workflow.task.BaseWorkFlowTask
addParameter, getAllParameters, getMainExecutionId, getOptionalParameterValue, getProjectId, getRequiredParameterValue, getWorkFlowCheckers, setBeanName, setWorkFlowCheckersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.redhat.parodos.workflow.task.WorkFlowTask
getAsJsonSchema, getWorkFlowTaskOutputs, getWorkFlowTaskParameters
-
Constructor Details
-
BaseWorkFlowCheckerTask
protected BaseWorkFlowCheckerTask(WorkFlow escalationWorkflow, long expectedSlaBeforeEscalationInSeconds) -
BaseWorkFlowCheckerTask
protected BaseWorkFlowCheckerTask()
-
-
Method Details
-
checkWorkFlowStatus
Method to check if a WorkFlow that is in a holding status, i.e: waiting for an external process to occur, has achieved its status and can trigger the next WorkFlow- Parameters:
context-- Returns:
-
execute
By default, if no execute method is defined, the checkWorkFlowStatus method will be executed by the WorkFlow engine -
getType
-