Class BTBundleHeaderLockedUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<BundleHeaderLockedUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleHeaderLockedUpdateEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundleHeaderLockedUpdateEvent>
overit.geocallapp.wfm.bundler.bl.header.task.BTBundleHeaderLockedUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleHeaderLockedUpdateEvent.class)
public class BTBundleHeaderLockedUpdate
extends BTBundler<BundleHeaderLockedUpdateEvent>
Business task in order to update a
When the
BOBundleHeader locked attribute.
When the
BundleHeaderLockedUpdateEvent is launched the BT notices the
call and updates the BOBundleHeader locked attribute basing on the
event's input. Error Code:
- Since:
- 11.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks the new and the old locked values in order to validate the update process.protected voidexecute(BundleHeaderLockedUpdateEvent event, PoolKit poolKit) Starting from theBundleHeaderLockedUpdateEvent's input, it sets the new lock value and updates theBOBundleHeader.protected BOBundleHeaderloadBundleHeader(PoolKit poolKit, BundleHeaderLockedUpdateInput input) It loads theBOBundleHeaderfrom the given id stored in theBundleHeaderLockedUpdateInput.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
-
BTBundleHeaderLockedUpdate
public BTBundleHeaderLockedUpdate()
-
-
Method Details
-
execute
protected void execute(BundleHeaderLockedUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Starting from theBundleHeaderLockedUpdateEvent's input, it sets the new lock value and updates theBOBundleHeader.- Specified by:
executein classValidExecutionBusinessTask<BundleHeaderLockedUpdateEvent>- Parameters:
event- theBundleHeaderLockedUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
loadBundleHeader
protected BOBundleHeader loadBundleHeader(PoolKit poolKit, BundleHeaderLockedUpdateInput input) throws DAValidateException, DAException It loads theBOBundleHeaderfrom the given id stored in theBundleHeaderLockedUpdateInput.- Parameters:
poolKit- thePoolKitinput- theBundleHeaderLockedUpdateInput- Returns:
- the
BOBundleHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkValues
Checks the new and the old locked values in order to validate the update process.- Parameters:
input- theBundleHeaderLockedUpdateInput- Throws:
DAValidateException- the DA validate exception
-