Class BTTimesheetHeaderUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetHeaderUpdateEvent>
overit.geocallapp.wfm.core.bl.timesheet.header.task.BTTimesheetHeaderUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetHeaderUpdateEvent.class)
public class BTTimesheetHeaderUpdate
extends BusinessTask<TimesheetHeaderUpdateEvent>
Business task in order to update a
When the
BOTimesheetHeader. When the
TimesheetHeaderUpdateEvent is launched the BT notices the
call and updates the BOTimesheetHeader basing on the event's input.
Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TimesheetHeaderUpdateEvent event, PoolKit pk) Updates theBOTimesheetHeaderwith all its needed components, except for his state.protected voidcheckBeforeUpdate(BOTimesheetHeader header) Checks and validates the data before the update.prepareFilterData(BOTimesheetHeader header) Prepares the filter data in order to load the correct record to update.prepareUpdateData(BOTimesheetHeader header) Prepares the data that is going to be updated in the selected timesheet header.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetHeaderUpdate
public BTTimesheetHeaderUpdate()
-
-
Method Details
-
body
protected void body(TimesheetHeaderUpdateEvent event, PoolKit pk) throws DAException, DAValidateException Updates theBOTimesheetHeaderwith all its needed components, except for his state.- Specified by:
bodyin classBusinessTask<TimesheetHeaderUpdateEvent>- Parameters:
event- theTimesheetHeaderUpdateEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkBeforeUpdate
Checks and validates the data before the update.- Parameters:
header- the header- Throws:
DAValidateException- the DA validate exception
-
prepareFilterData
Prepares the filter data in order to load the correct record to update.- Parameters:
header- theBOTimesheetHeaderto update- Returns:
- the hash map that is going to be used as filter to update the header
-
prepareUpdateData
Prepares the data that is going to be updated in the selected timesheet header. The state cannot be updated by this process, therefore is removed.- Parameters:
header- theBOTimesheetHeaderwhich contains the update data- Returns:
- the hash map that is going to be used as new values to update the header
-