Class BTCapacityPlanningResultCalculation
java.lang.Object
overit.geocall.bl.BusinessTask<CapacityPlanningResultCalculationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CapacityPlanningResultCalculationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CapacityPlanningResultCalculationEvent>
overit.geocallapp.wfm.forecastcapacity.bl.capacityplanning.coveragealgorithm.input.task.BTCapacityPlanningResultCalculation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CapacityPlanningResultCalculationEvent.class)
public class BTCapacityPlanningResultCalculation
extends ValidPermissionBusinessTask<CapacityPlanningResultCalculationEvent>
Business task to calculate the coverage of all the scenarios to be processed.
When the
When the
CapacityPlanningResultCalculationEvent is launched
the BT notices the call and calculates the coverage of all the scenarios to be processed. - Since:
- 15.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(CapacityPlanningResultCalculationEvent event, PoolKit pk) Main execution method that validates before proceeding with business logic.protected voidexecute(CapacityPlanningResultCalculationEvent event, PoolKit poolKit) Calculates the coverage of the scenarios.booleanDetermines whether the current state is valid for execution.Search for the capacity planning scenario to processMethods 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
-
Field Details
-
LOG
-
-
Constructor Details
-
BTCapacityPlanningResultCalculation
public BTCapacityPlanningResultCalculation()
-
-
Method Details
-
body
protected void body(CapacityPlanningResultCalculationEvent event, PoolKit pk) 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<CapacityPlanningResultCalculationEvent>- Parameters:
event- the input event to processpk- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails and exceptions are enabled
-
execute
protected void execute(CapacityPlanningResultCalculationEvent event, PoolKit poolKit) throws DAException, DAValidateException Calculates the coverage of the scenarios.- Specified by:
executein classValidExecutionBusinessTask<CapacityPlanningResultCalculationEvent>- Parameters:
event- theCapacityPlanningResultCalculationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadCapacityPlanningScenarioToBeProcessed
protected Set<Long> loadCapacityPlanningScenarioToBeProcessed(PoolKit poolKit) throws DAException, DAValidateException Search for the capacity planning scenario to process- Parameters:
poolKit- thePoolKit- Returns:
- a set of capacity planning scenario to be processed
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-