Class BTWorkloadUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<WorkloadUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkloadUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkloadUpdateEvent>
overit.geocallapp.wfm.orchestrator.planning.bl.roughplanning.workloadmovement.task.BTWorkloadUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkloadUpdateEvent.class)
public class BTWorkloadUpdate
extends ValidPermissionBusinessTask<WorkloadUpdateEvent>
- See Also:
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkloadUpdateEvent event, PoolKit poolKit) Main execution method that validates before proceeding with business logic.protected voidexecute(WorkloadUpdateEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.booleanDetermines whether the current state is valid for execution.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWorkloadUpdate
public BTWorkloadUpdate()
-
-
Method Details
-
body
protected void body(WorkloadUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskMain execution method that validates before proceeding with business logic. This method stores the input event and performs validation usingValidExecutionBusinessTask.checkValidExecution(). If validation passes, it delegates to theValidExecutionBusinessTask.execute(Object, PoolKit)method for actual business logic execution.- Overrides:
bodyin classValidExecutionBusinessTask<WorkloadUpdateEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails and exceptions are enabled
-
execute
protected void execute(WorkloadUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<WorkloadUpdateEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-