Class BTBundleRequirementInsert
java.lang.Object
overit.geocall.bl.BusinessTask<BundleRequirementInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundleRequirementInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<BundleRequirementInsertEvent>
overit.geocallapp.wfm.bundler.bl.bundleRequirement.task.BTBundleRequirementInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundleRequirementInsertEvent.class)
public class BTBundleRequirementInsert
extends ValidPermissionBusinessTask<BundleRequirementInsertEvent>
Business task in order to insert a
When the
BOBundleRequirement. When the
BundleRequirementInsertEvent is launched the BT notices the call and
inserts 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(BundleRequirementInsertEvent event, PoolKit poolKit) Inserts 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
-
BTBundleRequirementInsert
public BTBundleRequirementInsert()
-
-
Method Details
-
execute
protected void execute(BundleRequirementInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the bundle requirement.- Specified by:
executein classValidExecutionBusinessTask<BundleRequirementInsertEvent>- Parameters:
event- theBundleRequirementInsertEventcontaining the requirement data to insertpoolKit- 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
-