Class BTProcessSchedulingCreationProposal
java.lang.Object
overit.geocall.bl.BusinessTask<ProcessSchedulingCreationProposalEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProcessSchedulingCreationProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposal<ProcessSchedulingCreationProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposalProcessor<ProcessSchedulingCreationProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.creation.task.BTProcessSchedulingCreationProposal
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProcessSchedulingCreationProposalEvent.class)
public class BTProcessSchedulingCreationProposal
extends BTSchedulingProposalProcessor<ProcessSchedulingCreationProposalEvent>
Generic business task for the scheduling creation proposal process.
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(ProcessSchedulingCreationProposalEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected HashGettergetActivityInfo(Long appointmentId) protected List<BOBundleOperation> loadActiveBundleOperations(Long workOrderOperationId, PoolKit poolKit) protected BOWorkShiftloadForemanWorkShift(Long foremanId, Date targetDay, PoolKit poolKit) protected BOWorkShiftloadNearestWorkShift(Long resourceId, Date targetDate, PoolKit poolKit) protected BOSchedulingProposalloadSchedulingProposal(Long idSchedulingProposal, PoolKit poolKit) protected List<BOWorkShift> loadWorkShifts(Long resourceId, Date targetDay, PoolKit poolKit) protected voidprocess(BOSchedulingProposal bo, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposalProcessor
executeProcessor, isStateForProcess, isValidExecutionMethods inherited from class overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposal
getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
eventCreation
-
-
Constructor Details
-
BTProcessSchedulingCreationProposal
public BTProcessSchedulingCreationProposal()
-
-
Method Details
-
execute
protected void execute(ProcessSchedulingCreationProposalEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProcessSchedulingCreationProposalEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
loadSchedulingProposal
protected BOSchedulingProposal loadSchedulingProposal(Long idSchedulingProposal, PoolKit poolKit) throws DAValidateException, DAException - Specified by:
loadSchedulingProposalin classBTSchedulingProposalProcessor<ProcessSchedulingCreationProposalEvent>- Throws:
DAValidateExceptionDAException
-
process
protected void process(BOSchedulingProposal bo, PoolKit poolKit) throws DAValidateException, DAException - Specified by:
processin classBTSchedulingProposalProcessor<ProcessSchedulingCreationProposalEvent>- Throws:
DAValidateExceptionDAException
-
loadWorkShifts
protected List<BOWorkShift> loadWorkShifts(Long resourceId, Date targetDay, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadForemanWorkShift
protected BOWorkShift loadForemanWorkShift(Long foremanId, Date targetDay, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadNearestWorkShift
protected BOWorkShift loadNearestWorkShift(Long resourceId, Date targetDate, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadActiveBundleOperations
protected List<BOBundleOperation> loadActiveBundleOperations(Long workOrderOperationId, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getActivityInfo
- Throws:
DAExceptionDAValidateException
-