Class BTCapacityPlanningTotalResultCalculate
java.lang.Object
overit.geocall.bl.BusinessTask<CapacityPlanningTotalResultCalculateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CapacityPlanningTotalResultCalculateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CapacityPlanningTotalResultCalculateEvent>
overit.geocallapp.wfm.forecastcapacity.bl.capacityplanning.result.detail.task.BTCapacityPlanningTotalResultCalculate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CapacityPlanningTotalResultCalculateEvent.class)
public class BTCapacityPlanningTotalResultCalculate
extends ValidPermissionBusinessTask<CapacityPlanningTotalResultCalculateEvent>
This Business task calculates the total result of a capacity planning, the result are stored by
BOCapacityPlanningResult.
When the CapacityPlanningTotalResultCalculateEvent is launched the BT notices the
call and calculates the total result of the capacity planning basing on the event's input.
- Since:
- 19.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(CapacityPlanningTotalResultCalculateEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected LonggetCommittedResourceOrdinaryTime(List<BOCapacityPlanningResultDetail> resultDetails) protected LonggetCommittedResourceOvertime(List<BOCapacityPlanningResultDetail> resultDetails) protected LonggetTotalActivityTime(List<BOForecastActivityDetail> activityDetails) protected LonggetTotalResourceOrdinaryTime(List<BOForecastResourceDetail> resourceDetails) protected LonggetTotalResourceOvertime(List<BOForecastResourceDetail> resourceDetails) 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
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCapacityPlanningTotalResultCalculate
public BTCapacityPlanningTotalResultCalculate()
-
-
Method Details
-
execute
protected void execute(CapacityPlanningTotalResultCalculateEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<CapacityPlanningTotalResultCalculateEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
getTotalResourceOrdinaryTime
- Parameters:
resourceDetails- the list of forecast resource details- Returns:
- the total resource ordinary time
-
getTotalResourceOvertime
- Parameters:
resourceDetails- the list of forecast resource details- Returns:
- the total resource overtime
-
getCommittedResourceOrdinaryTime
- Parameters:
resultDetails- the list of capacity planning result details- Returns:
- the total committed resource ordinary time
-
getCommittedResourceOvertime
- Parameters:
resultDetails- the list of capacity planning result details- Returns:
- the total committed resource overtime
-
getTotalActivityTime
- Parameters:
activityDetails- the list of forecast activity details- Returns:
- the total activity time
-
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
-