Class BTWorkShiftMissingSkillCalculation
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftMissingSkillCalculationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WorkShiftMissingSkillCalculationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WorkShiftMissingSkillCalculationEvent>
overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTWorkShiftMissingSkillCalculation
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WorkShiftMissingSkillCalculationEvent.class)
public class BTWorkShiftMissingSkillCalculation
extends ValidPermissionBusinessTask<WorkShiftMissingSkillCalculationEvent>
Business task in order to calculate the missing skills of the resource/team in a scheduling.
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(WorkShiftMissingSkillCalculationEvent event, PoolKit poolKit) Calculate the missing skills.getWorkshiftSchedulingResources(Set<Long> workShiftsId, PoolKit poolKit) Gets the resources related to the work shift.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
-
Field Details
-
workShifts
-
-
Constructor Details
-
BTWorkShiftMissingSkillCalculation
public BTWorkShiftMissingSkillCalculation()
-
-
Method Details
-
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
-
execute
protected void execute(WorkShiftMissingSkillCalculationEvent event, PoolKit poolKit) throws DAException, DAValidateException Calculate the missing skills.- Specified by:
executein classValidExecutionBusinessTask<WorkShiftMissingSkillCalculationEvent>- Parameters:
event- the input eventpoolKit- thePoolKit- Throws:
DAException- the DAExceptionDAValidateException- the DAException
-
getWorkshiftSchedulingResources
protected Set<Long> getWorkshiftSchedulingResources(Set<Long> workShiftsId, PoolKit poolKit) throws DAValidateException, DAException Gets the resources related to the work shift.- Parameters:
workShiftsId- the work shift idpoolKit- thePoolKit- Returns:
- the set of resources of the workshift
- Throws:
DAValidateException- the DAValidateExceptionDAException- the DAException
-