Class BTTaskUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<TaskUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TaskUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TaskUpdateEvent>
overit.geocallapp.wfm.core.bl.timesheet.timesheettask.task.BTTaskUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TaskUpdateEvent.class)
public class BTTaskUpdate
extends ValidPermissionBusinessTask<TaskUpdateEvent>
Business task in order to update a
When the
BOTask. When the
TaskUpdateEvent is launched the BT notices the call and
updates the BOTask basing on the event's input. Error Code:
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
Fields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckBeforeUpdate(BOTask task) Checks and validates the data before the update.protected voidexecute(TaskUpdateEvent event, PoolKit pk) Updates theBOTaskwith all its needed components, except for his state.booleanDetermines whether the current state is valid for execution.prepareFilterData(BOTask task) Prepares the filter data in order to load the correct record to update.prepareUpdateData(BOTask task) Prepares the data that is going to be updated in the selected timesheet task.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTTaskUpdate
public BTTaskUpdate()
-
-
Method Details
-
execute
Updates theBOTaskwith all its needed components, except for his state.- Specified by:
executein classValidExecutionBusinessTask<TaskUpdateEvent>- Parameters:
event- the eventpk- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkBeforeUpdate
Checks and validates the data before the update.- Parameters:
task- the task- Throws:
DAValidateException- the DA validate exception
-
prepareFilterData
Prepares the filter data in order to load the correct record to update.- Parameters:
task- theBOTaskto update- Returns:
- the hash map that is going to be used as filter to update the task
-
prepareUpdateData
Prepares the data that is going to be updated in the selected timesheet task. The state cannot be updated by this process, therefore is removed.- Parameters:
task- theBOTaskwhich contains the update data- Returns:
- the hash map that is going to be used as new values to update the task
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-