Class BTTaskInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TaskInsertEvent>
overit.geocallapp.wfm.core.bl.timesheet.timesheettask.task.BTTaskInsert
- All Implemented Interfaces:
Serializable,Tool
Business task in order to insert a
When the
BOTask. When the
TaskInsertEvent is launched the BT notices the call and
inserts the BOTask basing on the event's input. Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(TaskInsertEvent event, PoolKit pk) Writes the inserted timesheet task id into the event journal.protected voidcheckBeforeInsert(BOTask task) Checks and validates the data before the insert.protected BOTaskinsertTask(BOTask task, PoolKit pk) Inserts the new timesheet task, basing on the @param task data given as input.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTaskInsert
public BTTaskInsert()
-
-
Method Details
-
body
Writes the inserted timesheet task id into the event journal.- Specified by:
bodyin classBusinessTask<TaskInsertEvent>- Parameters:
event- the eventpk- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkBeforeInsert
Checks and validates the data before the insert.- Parameters:
task- the task- Throws:
DAValidateException- the DA validate exception
-
insertTask
Inserts the new timesheet task, basing on the @param task data given as input. It also inserts the corresponding record into the history, using theBTTaskHistory.- Parameters:
task- the taskpk- the pool kit- Returns:
- the BO timesheet task
- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-