Class BTTimesheetHeaderInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TimesheetHeaderInsertEvent>
overit.geocallapp.wfm.core.bl.timesheet.header.task.BTTimesheetHeaderInsert
- All Implemented Interfaces:
Serializable,Tool
@Event(TimesheetHeaderInsertEvent.class)
public class BTTimesheetHeaderInsert
extends BusinessTask<TimesheetHeaderInsertEvent>
Business task in order to insert a
When the
BOTimesheetHeader. When the
TimesheetHeaderInsertEvent is launched the BT notices the
call and inserts 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(TimesheetHeaderInsertEvent event, PoolKit pk) Writes the inserted time sheet header id into the event journal.protected voidcheckBeforeInsert(BOTimesheetHeader header) Checks and validates the data before the insert.protected BOTimesheetHeaderinsertHeader(BOTimesheetHeader header, PoolKit pk) Inserts the new time sheet header, basing on the @param header data given as input.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTimesheetHeaderInsert
public BTTimesheetHeaderInsert()
-
-
Method Details
-
body
protected void body(TimesheetHeaderInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted time sheet header id into the event journal.- Specified by:
bodyin classBusinessTask<TimesheetHeaderInsertEvent>- Parameters:
event- theTimesheetHeaderInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkBeforeInsert
Checks and validates the data before the insert.- Parameters:
header- the header- Throws:
DAValidateException- the DA validate exception
-
insertHeader
protected BOTimesheetHeader insertHeader(BOTimesheetHeader header, PoolKit pk) throws DAException, DAValidateException Inserts the new time sheet header, basing on the @param header data given as input. It also inserts the corresponding record into the history, using theBTTimesheetHeaderHistory.- Parameters:
header- the headerpk- thePoolKit- Returns:
- the BO time sheet header
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-