Class BTBundleRequirementUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<BundleRequirementUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleRequirementUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<BundleRequirementUpdateEvent>
overit.geocallapp.wfm.bundler.bl.bundleRequirement.task.BTBundleRequirementUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleRequirementUpdateEvent.class)
public class BTBundleRequirementUpdate
extends ValidPermissionBusinessTask<BundleRequirementUpdateEvent>
Business task in order to update a
When the
BOBundleRequirement. When the
BundleRequirementUpdateEvent is launched the BT notices the call and
updates the BOBundleRequirement basing on the event's input.- Since:
- 22.0
- 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 voidexecute(BundleRequirementUpdateEvent event, PoolKit poolKit) Updates the bundle requirement.booleanDetermines if the execution of this task is valid.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
-
BTBundleRequirementUpdate
public BTBundleRequirementUpdate()
-
-
Method Details
-
execute
protected void execute(BundleRequirementUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates the bundle requirement.- Specified by:
executein classValidExecutionBusinessTask<BundleRequirementUpdateEvent>- Parameters:
event- theBundleRequirementUpdateEventcontaining the requirement data to updatepoolKit- thePoolKitfor database operations- Throws:
DAException- if a database error occursDAValidateException- if validation fails
-
isValidExecution
public boolean isValidExecution()Determines if the execution of this task is valid.- Returns:
- true
-