Class BTWOOperationInterventionSchedulingLoad
java.lang.Object
overit.geocall.bl.BusinessTask<WOOperationInterventionSchedulingLoadEvent>
overit.geocallapp.wfm.core.bl.schedule.wooperation.task.BTWOOperationInterventionSchedulingLoad
- All Implemented Interfaces:
Serializable,Tool
@Event(WOOperationInterventionSchedulingLoadEvent.class)
public class BTWOOperationInterventionSchedulingLoad
extends BusinessTask<WOOperationInterventionSchedulingLoadEvent>
Business task in order to load a
When the
WOOperationInterventionScheduling.
When the
WOOperationInterventionSchedulingLoadEvent is launched the
BT notices the call and loads the WOOperationInterventionScheduling
basing on the event's input. - See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WOOperationInterventionSchedulingLoadEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected WOOperationInterventionSchedulingbuildWOOperationInterventionScheduling(List<Intervention> interventions, Map<Long, List<BOScheduling>> interventionsSchedulingsMap, BOWorkOrderOperation woOperation, Long schedulingModel) protected booleanhasValidAgenda(Intervention intervention) protected booleanhasValidAppointment(Intervention intervention) protected Predicate<Intervention> protected List<Intervention> loadInterventions(Long woOperation, boolean activeInterventionOnly, PoolKit poolKit) protected Map<Long, List<BOScheduling>> loadInterventionsSchedulingsMap(List<Intervention> interventions, Long schedulingModel, PoolKit poolKit) protected BOWorkOrderHeaderloadWorkOrderHeader(Long workOrder, PoolKit poolKit) protected BOWorkOrderOperationloadWorkOrderOperation(Long woOperation, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWOOperationInterventionSchedulingLoad
public BTWOOperationInterventionSchedulingLoad()
-
-
Method Details
-
body
protected void body(WOOperationInterventionSchedulingLoadEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<WOOperationInterventionSchedulingLoadEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
loadInterventions
protected List<Intervention> loadInterventions(Long woOperation, boolean activeInterventionOnly, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
isValidIntervention
-
hasValidAgenda
-
hasValidAppointment
-
loadInterventionsSchedulingsMap
protected Map<Long,List<BOScheduling>> loadInterventionsSchedulingsMap(List<Intervention> interventions, Long schedulingModel, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadWorkOrderOperation
protected BOWorkOrderOperation loadWorkOrderOperation(Long woOperation, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
loadWorkOrderHeader
protected BOWorkOrderHeader loadWorkOrderHeader(Long workOrder, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildWOOperationInterventionScheduling
protected WOOperationInterventionScheduling buildWOOperationInterventionScheduling(List<Intervention> interventions, Map<Long, List<BOScheduling>> interventionsSchedulingsMap, BOWorkOrderOperation woOperation, Long schedulingModel)
-