Class BTTimesheetHeaderStateUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetHeaderStateUpdateEvent>
overit.geocallapp.wfm.core.bl.timesheet.header.task.BTTimesheetHeaderStateUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetHeaderStateUpdateEvent.class)
public class BTTimesheetHeaderStateUpdate
extends BusinessTask<TimesheetHeaderStateUpdateEvent>
Business task in order to update the state of the given
When the
BOTimesheetHeader. When the
TimesheetHeaderStateUpdateEvent is launched
the BT notices the call and updates the BOTimesheetHeader state basing on the event's input. - Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TimesheetHeaderStateUpdateEvent event, PoolKit poolkit) Updates theBOTimesheetHeaderstate, i.e. no other field of the timesheet header is going to be updated by this process.Prepares the filter data in order to load the correct record to update.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
-
BTTimesheetHeaderStateUpdate
public BTTimesheetHeaderStateUpdate()
-
-
Method Details
-
body
protected void body(TimesheetHeaderStateUpdateEvent event, PoolKit poolkit) throws DAException, DAValidateException Updates theBOTimesheetHeaderstate, i.e. no other field of the timesheet header is going to be updated by this process.- Specified by:
bodyin classBusinessTask<TimesheetHeaderStateUpdateEvent>- Parameters:
event- theTimesheetHeaderStateUpdateEventpoolkit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
prepareFilterData
Prepares the filter data in order to load the correct record to update.- Parameters:
input- theTimesheetHeaderStateUpdateInputwhich contains the header id to 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.
Only the state of the timesheet header can be updated by this process, therefore all the other fields are removed.- Parameters:
input- theTimesheetHeaderStateUpdateInputwhich contains the update data (only the state)- Returns:
- the hash map that is going to be used as new values to update the header
-