Class BTSchedulingProposalUpdateProcessData
java.lang.Object
overit.geocall.bl.BusinessTask<SchedulingProposalUpdateProcessDataEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<SchedulingProposalUpdateProcessDataEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposal<SchedulingProposalUpdateProcessDataEvent>
overit.geocallapp.wfm.core.bl.schedulingproposal.task.BTSchedulingProposalUpdateProcessData
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(SchedulingProposalUpdateProcessDataEvent.class)
public class BTSchedulingProposalUpdateProcessData
extends BTSchedulingProposal<SchedulingProposalUpdateProcessDataEvent>
Business task in order to update a
BOSchedulingProposal.
When the SchedulingProposalUpdateProcessDataEvent is launched
the BT notices the call and updates the BOSchedulingProposal basing on the event's input.
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(SchedulingProposalUpdateProcessDataEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected voidprotected voidbooleanDetermines whether the current state is valid for execution.protected BOSchedulingProposalloadSchedulingProposal(Long schedulingProposalId, PoolKit poolKit) protected voidupdateSchedulingProposal(SchedulingProposalUpdateProcessDataInput input, PoolKit poolKit) Methods 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
-
timeSlot
-
-
Constructor Details
-
BTSchedulingProposalUpdateProcessData
public BTSchedulingProposalUpdateProcessData()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Specified by:
isValidExecutionin interfaceValidExecution- Overrides:
isValidExecutionin classBTSchedulingProposal<SchedulingProposalUpdateProcessDataEvent>- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(SchedulingProposalUpdateProcessDataEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<SchedulingProposalUpdateProcessDataEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
initTimeSlot
protected void initTimeSlot(SchedulingProposalUpdateProcessDataInput input) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
freeTimeSlot
-
loadSchedulingProposal
protected BOSchedulingProposal loadSchedulingProposal(Long schedulingProposalId, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
updateSchedulingProposal
protected void updateSchedulingProposal(SchedulingProposalUpdateProcessDataInput input, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-