Class BTCrewShellWorkshiftCompleteDelete
java.lang.Object
overit.geocall.bl.BusinessTask<WorkShiftNotificationEvent>
overit.geocallapp.wfm.core.bl.crewshell.workshift.task.BTCrewShellWorkshiftCompleteDelete
- All Implemented Interfaces:
Serializable,Tool
@Event(WorkShiftNotificationEvent.class)
public class BTCrewShellWorkshiftCompleteDelete
extends BusinessTask<WorkShiftNotificationEvent>
Business task to complete a crew shell
When the
BOWorkShift delete action. When the
WorkShiftNotificationEvent event is launched the BT notices the
call and complete the BOWorkShift delete action basing on the event's input. - Since:
- 16.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WorkShiftNotificationEvent event, PoolKit pk) Implements this method to write the specific task logic to handle the input parameter.protected List<BOCrewShellDraftComposition> searchTechniciansByCrewShellAndDay(Long crewShell, Date day, PoolKit poolKit) Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTCrewShellWorkshiftCompleteDelete
public BTCrewShellWorkshiftCompleteDelete()
-
-
Method Details
-
body
protected void body(WorkShiftNotificationEvent event, PoolKit pk) 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<WorkShiftNotificationEvent>- Parameters:
event- the object upon which the task will works onpk- 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
-
searchTechniciansByCrewShellAndDay
protected List<BOCrewShellDraftComposition> searchTechniciansByCrewShellAndDay(Long crewShell, Date day, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-