Class BTBundleLoadByAppointment
java.lang.Object
overit.geocall.bl.BusinessTask<BundleLoadByAppointmentEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleLoadByAppointmentEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundleLoadByAppointmentEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.bundler.bundle.task.BTBundleLoadByAppointment
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleLoadByAppointmentEvent.class)
public class BTBundleLoadByAppointment
extends BTBundler<BundleLoadByAppointmentEvent>
Business task which loads the active
When the
Bundle related to the given BOAppointment id. When the
BundleLoadByAppointmentEvent is launched
the BT notices the call and loads the active Bundle basing on the event's input. - Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(BundleLoadByAppointmentEvent event, PoolKit poolKit) Starting from the id of aBOAppointment, the corresponding activeBundleis loaded and then written into the event's journal.protected WorkOrdersIntegrationServicegetIntegrationService(PoolKit poolKit) Retrieves theWorkOrdersIntegrationServiceinstance.protected BOAppointmentloadAppointment(Long appointmentId, PoolKit poolKit) Loads theBOAppointmentby the given id.protected BOBundleOperationloadBundleOperation(Long appointmentId, PoolKit poolKit) Loads theBOBundleOperationrelated to the givenBOAppointment.Methods inherited from class overit.geocallapp.wfm.bundler.bl.task.BTBundler
getException, isValidExecution, 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
-
BTBundleLoadByAppointment
public BTBundleLoadByAppointment()
-
-
Method Details
-
execute
protected void execute(BundleLoadByAppointmentEvent event, PoolKit poolKit) throws DAException, DAValidateException Starting from the id of aBOAppointment, the corresponding activeBundleis loaded and then written into the event's journal.- Specified by:
executein classValidExecutionBusinessTask<BundleLoadByAppointmentEvent>- Parameters:
event- theBundleLoadByAppointmentEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadBundleOperation
protected BOBundleOperation loadBundleOperation(Long appointmentId, PoolKit poolKit) throws DAValidateException, DAException Loads theBOBundleOperationrelated to the givenBOAppointment.- Parameters:
appointmentId- the id of the relatedBOAppointmentpoolKit- thePoolKit- Returns:
- the loaded
BOBundleOperation - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadAppointment
protected BOAppointment loadAppointment(Long appointmentId, PoolKit poolKit) throws DAValidateException, DAException Loads theBOAppointmentby the given id.- Parameters:
appointmentId- theBOAppointmentidpoolKit- thePoolKit- Returns:
- the loaded
BOAppointment - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getIntegrationService
protected WorkOrdersIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Retrieves theWorkOrdersIntegrationServiceinstance. If the instance hasn't been created yet, it will be created and stored for future use.- Parameters:
poolKit- ThePoolKit.- Returns:
- The
WorkOrdersIntegrationServiceinstance. - Throws:
DAValidateException- If any validation error occurs.
-