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
@Event(ImmediateSchedulingWorkOrderExclusionEvent.class)
public class BTImmediateSchedulingWorkOrderExclusion
extends BusinessTask<ImmediateSchedulingWorkOrderExclusionEvent>
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(ImmediateSchedulingWorkOrderExclusionEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected ImmediateSchedulingWorkOrderHelperGets the ImmediateSchedulingWorkOrderHelper instance.protected SchedulingIntegrationServicegetIntegrationService(PoolKit poolKit) Gets the SchedulingIntegrationService instance.protected booleanisTransientState(Long operationState) Checks if the given operation state represents a transient error.protected booleanisValidSchedulableState(Long operationState) Checks if the given operation state is valid for scheduling.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
FACTORY_PATH
- See Also:
-
-
Constructor Details
-
BTImmediateSchedulingWorkOrderExclusion
public BTImmediateSchedulingWorkOrderExclusion()
-
-
Method Details
-
body
protected void body(ImmediateSchedulingWorkOrderExclusionEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<ImmediateSchedulingWorkOrderExclusionEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
isValidSchedulableState
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
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
Gets the ImmediateSchedulingWorkOrderHelper instance.- Returns:
- the helper
-