Class BTBundleEntitiesAggregateLoad
java.lang.Object
overit.geocall.bl.BusinessTask<BundleEntitiesAggregateLoadEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleEntitiesAggregateLoadEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundleEntitiesAggregateLoadEvent>
overit.geocallapp.wfm.core.bl.bundler.task.BTBundleEntitiesAggregateLoad
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleEntitiesAggregateLoadEvent.class)
public class BTBundleEntitiesAggregateLoad
extends BTBundler<BundleEntitiesAggregateLoadEvent>
Business task in order to load a
When the
BundleEntitiesAggregate. When the
BundleEntitiesAggregateLoadEvent is launched
the BT notices the call and loads the BundleEntitiesAggregate basing on the event's input. - Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(BundleEntitiesAggregateLoadEvent event, PoolKit poolKit) Creates a newBundleEntitiesAggregatein which every needed information is loaded.protected List<BOAgendaResource> loadAgendaResources(List<BOAgenda> agendas, PoolKit poolKit) protected List<Intervention> loadInterventions(List<Long> bundleOperations, PoolKit poolKit) Loads theInterventions related to everyBOBundleOperation.protected voidloadSchedulingInformations(BundleEntitiesAggregate aggregate, PoolKit poolKit) Loads all the scheduling information, such as theInterventions or theBOAgendaResources.protected List<BOWorkOrderOperation> loadWorkOrderOperations(List<Long> woOperationIds, PoolKit poolKit) Loads the list ofBOWorkOrderOperationcorresponding to the given ids by calling theWorkOrderOperationSearchEvent.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
-
BTBundleEntitiesAggregateLoad
public BTBundleEntitiesAggregateLoad()
-
-
Method Details
-
execute
protected void execute(BundleEntitiesAggregateLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Creates a newBundleEntitiesAggregatein which every needed information is loaded.- Specified by:
executein classValidExecutionBusinessTask<BundleEntitiesAggregateLoadEvent>- Parameters:
event- theBundleEntitiesAggregateLoadEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadSchedulingInformations
protected void loadSchedulingInformations(BundleEntitiesAggregate aggregate, PoolKit poolKit) throws DAValidateException, DAException Loads all the scheduling information, such as theInterventions or theBOAgendaResources.- Parameters:
aggregate- the currentBundleEntitiesAggregatepoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadWorkOrderOperations
protected List<BOWorkOrderOperation> loadWorkOrderOperations(List<Long> woOperationIds, PoolKit poolKit) throws DAValidateException, DAException Loads the list ofBOWorkOrderOperationcorresponding to the given ids by calling theWorkOrderOperationSearchEvent.- Parameters:
woOperationIds- list ofBOWorkOrderOperationidspoolKit- thePoolKit- Returns:
- a list of
BOWorkOrderOperation - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadInterventions
protected List<Intervention> loadInterventions(List<Long> bundleOperations, PoolKit poolKit) throws DAValidateException, DAException Loads theInterventions related to everyBOBundleOperation.- Parameters:
bundleOperations- the list ofBOBundleOperationidspoolKit- thePoolKit- Returns:
- the list of loaded
Interventions - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
loadAgendaResources
protected List<BOAgendaResource> loadAgendaResources(List<BOAgenda> agendas, PoolKit poolKit) throws DAValidateException, DAException - Parameters:
agendas- list of all theBOAgendarelated to theBOBundleOperationspoolKit- thePoolKit- Returns:
- a list of
BOAgendaResource - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-