Class BTImmediateSchedulingWorkOrderExclusion

java.lang.Object
overit.geocall.bl.BusinessTask<ImmediateSchedulingWorkOrderExclusionEvent>
overit.geocallapp.wfm.orchestrator.scheduling.bl.immediatescheduling.woexclusion.task.BTImmediateSchedulingWorkOrderExclusion
All Implemented Interfaces:
Serializable, Tool

Business Task for validating work order operation states during immediate scheduling. Excludes operations that are not in a valid schedulable state. Valid states are: - SCHEDULABLE - TO_RESCHEDULE - LOCKED
Since:
22.0
See Also:
  • Field Details

  • Constructor Details

    • BTImmediateSchedulingWorkOrderExclusion

      public BTImmediateSchedulingWorkOrderExclusion()
  • Method Details

    • body

      Description copied from class: BusinessTask
      Implements this method to write the specific task logic to handle the input parameter.
      Specified by:
      body in class BusinessTask<ImmediateSchedulingWorkOrderExclusionEvent>
      Parameters:
      event - the object upon which the task will works on
      poolKit - the poolkit containing the reference to the database connection that can be used
      Throws:
      DAException - in case of database error
      DAValidateException - in case of database validation error
    • isValidSchedulableState

      protected boolean isValidSchedulableState(Long operationState)
      Checks if the given operation state is valid for scheduling. Valid states are: SCHEDULABLE, TO_RESCHEDULE, LOCKED. Cannot use ConstSchedulazione from core module.
      Parameters:
      operationState - the operation state to check
      Returns:
      true if the state is valid for scheduling, false otherwise
    • isTransientState

      protected boolean isTransientState(Long operationState)
      Checks if the given operation state represents a transient error. Transient errors are temporary conditions that may resolve themselves (e.g., OPEN state). For transient errors, the processing counter should NOT be incremented.
      Parameters:
      operationState - the operation state to check
      Returns:
      true if the state represents a transient error, false for permanent errors
    • getIntegrationService

      protected SchedulingIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException
      Gets the SchedulingIntegrationService instance.
      Parameters:
      poolKit - the pool kit
      Returns:
      the integration service
      Throws:
      DAValidateException - if the service cannot be created
    • getHelper

      protected ImmediateSchedulingWorkOrderHelper getHelper()
      Gets the ImmediateSchedulingWorkOrderHelper instance.
      Returns:
      the helper