Class BaseWorkFlowCheckerTask

  • All Implemented Interfaces:
    WorkFlowTask, Work, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

    public abstract class BaseWorkFlowCheckerTask
    extends BaseWorkFlowTask
    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 Detail

      • BaseWorkFlowCheckerTask

        protected BaseWorkFlowCheckerTask​(WorkFlow escalationWorkflow,
                                          long expectedSlaBeforeEscalationInSeconds)
      • BaseWorkFlowCheckerTask

        protected BaseWorkFlowCheckerTask()
    • Method Detail

      • checkWorkFlowStatus

        protected abstract WorkReport checkWorkFlowStatus​(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 WorkFlow
        Parameters:
        context -
        Returns:
      • execute

        public WorkReport execute​(WorkContext workContext)
        By default, if no execute method is defined, the checkWorkFlowStatus method will be executed by the WorkFlow engine