Class BTBundleOperationStatusUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<BundleOperationStatusUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleOperationStatusUpdateEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundleOperationStatusUpdateEvent>
overit.geocallapp.wfm.bundler.bl.operation.task.BTBundleOperationStatusUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleOperationStatusUpdateEvent.class)
public class BTBundleOperationStatusUpdate
extends BTBundler<BundleOperationStatusUpdateEvent>
Business task in order to update the status of a
When the
BOBundleOperation.
When the
BundleOperationStatusUpdateEvent is launched the BT notices
the call and updates the BOBundleOperation basing on the event's
input. Error Code:
- Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckValidStatus(Long newStatus, Long oldStatus) Checks whether the status change is permitted and therefore if the update can be executed or not.protected voidexecute(BundleOperationStatusUpdateEvent event, PoolKit poolKit) Updates theBOBundleOperationwith all its needed components.protected voidnotifyStatusChange(BundleOperationStatusUpdateInput input, PoolKit poolKit) Notifies the change of the status of the givenBOBundleOperation.Prepares the filter in order to correctly load theBOBundleOperationto update.Prepares the data to update, i.e. the value of the new status for theBOBundleOperation.protected voidupdate(BundleOperationStatusUpdateInput input, PoolKit poolKit) Performs the update of theBOBundleOperationwith the validated change of status.Methods inherited from class overit.geocallapp.wfm.bundler.bl.task.BTBundler
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTBundleOperationStatusUpdate
public BTBundleOperationStatusUpdate()
-
-
Method Details
-
execute
protected void execute(BundleOperationStatusUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates theBOBundleOperationwith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<BundleOperationStatusUpdateEvent>- Parameters:
event- theBundleOperationUpdateEventpoolKit- the pool kit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
checkValidStatus
Checks whether the status change is permitted and therefore if the update can be executed or not.- Parameters:
newStatus- the newBOBundleOperationStatusid, it cannot be nulloldStatus- the oldBOBundleOperationStatusid- Throws:
DAValidateException- the DA validate exception
-
update
protected void update(BundleOperationStatusUpdateInput input, PoolKit poolKit) throws DAException, DAValidateException Performs the update of theBOBundleOperationwith the validated change of status.- Parameters:
input- the givenBundleOperationStatusUpdateInputcontaining all the needed bundle operation datapoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
prepareFilterData
Prepares the filter in order to correctly load theBOBundleOperationto update.- Parameters:
input- theBundleOperationStatusUpdateInput- Returns:
- the hash map that is going to be used as filter
-
prepareUpdateData
Prepares the data to update, i.e. the value of the new status for theBOBundleOperation.- Parameters:
input- theBundleOperationStatusUpdateInput- Returns:
- the hash map that is going to be used to update the bundle operation status
-
notifyStatusChange
protected void notifyStatusChange(BundleOperationStatusUpdateInput input, PoolKit poolKit) throws DAValidateException, DAException Notifies the change of the status of the givenBOBundleOperation.- Parameters:
input- the input forBundleOperationStatusChangeEventpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-