Class BTTimesheetAutomaticTaskDurationUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetAutomaticTaskDurationUpdateEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet<TimesheetAutomaticTaskDurationUpdateEvent>
overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheetAutomaticTaskDurationUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetAutomaticTaskDurationUpdateEvent.class)
public class BTTimesheetAutomaticTaskDurationUpdate
extends BTTimesheet<TimesheetAutomaticTaskDurationUpdateEvent>
Business task in order to update the duration of automatic
When the
BOTask. When the
TimesheetAutomaticTaskDurationUpdateEvent is launched
the BT notices the call and updates the BOTask duration basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateWarnings(Timesheet timesheet, PoolKit poolKit) protected voidexecute(TimesheetAutomaticTaskDurationUpdateEvent event, PoolKit poolKit) getTasksByEntity(Long intervention, Long clocking, Long unavailability, PoolKit poolKit) protected List<BOEventEntity> loadEventEntities(Long intervention, Long clocking, Long unavailability, PoolKit poolKit) loadTasksByStartEventEntity(Collection<Long> startEventEntity, PoolKit poolKit) protected TimesheetloadTimesheet(TimesheetTaskEventCache cache, Long timesheetId, PoolKit poolKit) protected voidupdateTaskDuration(BOTask task, long currentDuration, long newDuration, PoolKit poolKit) updateTasksDuration(List<BOTask> tasks, long currentDuration, long newDuration, TimesheetTaskEventCache cache, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.timesheet.task.BTTimesheet
body, checkTimesheetActivation, throwInactiveTimesheetExceptionMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetAutomaticTaskDurationUpdate
public BTTimesheetAutomaticTaskDurationUpdate()
-
-
Method Details
-
execute
protected void execute(TimesheetAutomaticTaskDurationUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException - Specified by:
executein classBTTimesheet<TimesheetAutomaticTaskDurationUpdateEvent>- Throws:
DAExceptionDAValidateException
-
getTasksByEntity
protected List<BOTask> getTasksByEntity(Long intervention, Long clocking, Long unavailability, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadEventEntities
protected List<BOEventEntity> loadEventEntities(Long intervention, Long clocking, Long unavailability, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTasksByStartEventEntity
protected List<BOTask> loadTasksByStartEventEntity(Collection<Long> startEventEntity, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateTasksDuration
protected List<BOTask> updateTasksDuration(List<BOTask> tasks, long currentDuration, long newDuration, TimesheetTaskEventCache cache, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateTaskDuration
protected void updateTaskDuration(BOTask task, long currentDuration, long newDuration, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
loadTimesheet
-
calculateWarnings
protected void calculateWarnings(Timesheet timesheet, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-