Class BTActivityManualAssignment<T extends ActivityManualAssignmentInput>
java.lang.Object
overit.geocall.bl.BusinessTask<SimpleBusinessEvent<T,ActivityManualAssignmentOutput>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SimpleBusinessEvent<T,ActivityManualAssignmentOutput>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<SimpleBusinessEvent<T,ActivityManualAssignmentOutput>>
overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTBaseActivityManualAssignment<T>
overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTActivityManualAssignment<T>
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ActivityManualAssignmentEvent.class)
public class BTActivityManualAssignment<T extends ActivityManualAssignmentInput>
extends BTBaseActivityManualAssignment<T>
Business task in order to schedule an activity to a resource.
Error Code:
Error Code:
Codes.ManualScheduling.ACTIVITY_DATE_BLOCKEDCodes.ManualScheduling.WRONG_APPOINTMENT_DATECodes.ManualScheduling.APPOINTMENT_ALREADY_DEFINEDCodes.ManualScheduling.INVALID_ACTIVITY_COORDINATESCodes.ManualScheduling.CANNOT_DEDUCE_DEPARTURE_ADDRESSCodes.ManualScheduling.CANNOT_DEDUCE_ARRIVAL_ADDRESSCodes.ManualScheduling.INVALID_ARRIVAL_ADDRESS_COORDINATESCodes.ManualScheduling.INVALID_DEPARTURE_ADDRESS_COORDINATESCodes.ManualScheduling.WORKSHIFT_TIME_EXCEEDEDCodes.ManualScheduling.ACTION_NOT_ALLOWED_ON_PASSED_DAYSCodes.ManualScheduling.ACTION_NOT_POSSIBLE_ON_LOCKED_DAYSCodes.ManualScheduling.OPERATION_IS_BOOKINGCodes.ManualScheduling.RESOURCE_UNAVAILABLECodes.ManualScheduling.ACTIVITY_SCHEDULING_MODE_NOT_VALIDCodes.ManualScheduling.OPERATION_NOT_ALLOWED_FROM_PROJECTCodes.ManualScheduling.WORKSHIFT_END_TIME_EXCEEDEDCodes.ManualScheduling.WORKSHIFT_OVERTIME_TIME_EXCEEDED
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTBaseActivityManualAssignment
eventInput, outputFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignActivity(PoolKit poolKit) Schedule the current activity in the work shift of the resource, aligning previous and next activities.protected voidcheckCrewShell(PoolKit poolKit) Evaluate if the assignation of the activity can be done checking the resource configuration.protected LongThis method doesn't refer to the constants of core module of planning action.protected SchedulingTeamLoads the team on which the activity will be assignedprotected voidupdateStatus(PoolKit poolKit) Method that callsUpdateStatusManualSchedulingEventand updates the status of the appointment, agenda, work order and operation entities related to the scheduling.Methods inherited from class overit.geocallapp.wfm.orchestrator.scheduling.bl.activityassignment.task.BTBaseActivityManualAssignment
alignAgenda, buildOutput, calculateMissingSkills, calculateTimeAndDistanceInformation, checkActivity, checkActivityBlockDate, checkBookingDate, checkFreezingDay, checkScheduledTimeOnWorkshift, checkSchedulingsOfAgendas, createNewAgenda, execute, getAllResourcesSchedulings, getContext, getIntegrationService, getInterventionDuration, getLock, initialChecks, initializeContext, insertBasicScheduling, isValidExecution, launchCompleteManualActionEvent, launchSchedulingCheckEvent, loadWorkShiftDays, notifyActivityScheduled, notifyInsert, prepareTeam, reloadSchedulings, retrieveAgenda, retrieveAppointment, saveInitialSchedulings, savePlanningHistory, setContext, updateNextsSchedulingsOrder, updateParentScheduling, updatePreviousNextSchedulingCoordinatesPath, updateSchedulings, updateWorkshiftTourData, validateEventInputMethods 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
-
BTActivityManualAssignment
public BTActivityManualAssignment()
-
-
Method Details
-
loadTeam
Description copied from class:BTBaseActivityManualAssignmentLoads the team on which the activity will be assigned- Specified by:
loadTeamin classBTBaseActivityManualAssignment<T extends ActivityManualAssignmentInput>- Parameters:
poolKit- thePoolKit- Returns:
- Throws:
DAValidateExceptionDAException
-
checkCrewShell
Evaluate if the assignation of the activity can be done checking the resource configuration.
Assignation to members of a crew shell cannot be performed.- Specified by:
checkCrewShellin classBTBaseActivityManualAssignment<T extends ActivityManualAssignmentInput>- Throws:
DAValidateException
-
assignActivity
Schedule the current activity in the work shift of the resource, aligning previous and next activities.- Specified by:
assignActivityin classBTBaseActivityManualAssignment<T extends ActivityManualAssignmentInput>- Parameters:
poolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getPlanningAction
This method doesn't refer to the constants of core module of planning action. We don't want to manage planning action outside core module, for now we fix the basic value- Specified by:
getPlanningActionin classBTBaseActivityManualAssignment<T extends ActivityManualAssignmentInput>
-
updateStatus
Description copied from class:BTBaseActivityManualAssignmentMethod that callsUpdateStatusManualSchedulingEventand updates the status of the appointment, agenda, work order and operation entities related to the scheduling.
If required, the agenda is validated also the crew shell schedulings.- Overrides:
updateStatusin classBTBaseActivityManualAssignment<T extends ActivityManualAssignmentInput>- Parameters:
poolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-