Class BTProcessSchedulingRemovalProposal
java.lang.Object
overit.geocall.bl.BusinessTask<ProcessSchedulingRemovalProposalEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<ProcessSchedulingRemovalProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposal<ProcessSchedulingRemovalProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposalProcessor<ProcessSchedulingRemovalProposalEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.removal.task.BTProcessSchedulingRemovalProposal
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(ProcessSchedulingRemovalProposalEvent.class)
public class BTProcessSchedulingRemovalProposal
extends BTSchedulingProposalProcessor<ProcessSchedulingRemovalProposalEvent>
Generic business task for the scheduling removal proposal process.
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIfCrewShellWorkshift(List<BOScheduling> boSchedulingList, PoolKit pk) protected voidexecute(ProcessSchedulingRemovalProposalEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected List<BOScheduling> protected BOWorkOrderOperationgetWorkOrderOperation(BOSchedulingRemovalProposal bo, PoolKit poolKit) protected booleanprotected BOSchedulingProposalloadSchedulingProposal(Long idSchedulingProposal, PoolKit poolKit) protected voidprocess(BOSchedulingProposal bo, PoolKit poolKit) processSchedulingRemovalProposal(BOScheduling boScheduling, PoolKit pk) 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
-
Constructor Details
-
BTProcessSchedulingRemovalProposal
public BTProcessSchedulingRemovalProposal()
-
-
Method Details
-
execute
protected void execute(ProcessSchedulingRemovalProposalEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<ProcessSchedulingRemovalProposalEvent>- 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<ProcessSchedulingRemovalProposalEvent>- Throws:
DAValidateExceptionDAException
-
process
protected void process(BOSchedulingProposal bo, PoolKit poolKit) throws DAValidateException, DAException - Specified by:
processin classBTSchedulingProposalProcessor<ProcessSchedulingRemovalProposalEvent>- Throws:
DAValidateExceptionDAException
-
getWorkOrderOperation
protected BOWorkOrderOperation getWorkOrderOperation(BOSchedulingRemovalProposal bo, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isRemovableSchedulation
-
getSchedulingToRemove
protected List<BOScheduling> getSchedulingToRemove(BOSchedulingRemovalProposal bo, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
processSchedulingRemovalProposal
protected Set<Long> processSchedulingRemovalProposal(BOScheduling boScheduling, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
checkIfCrewShellWorkshift
protected void checkIfCrewShellWorkshift(List<BOScheduling> boSchedulingList, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-