Class BTWarehouseAgendaMaterialInsert
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseAgendaMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseAgendaMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseAgendaMaterialInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseAgendaMaterialInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.intervention.material.agendamaterial.task.BTWarehouseAgendaMaterialInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseAgendaMaterialInsertEvent.class)
public class BTWarehouseAgendaMaterialInsert
extends BTInventoryManagement<WarehouseAgendaMaterialInsertEvent>
Business task in order to insert a
When the
BOWarehouseAgendaMaterial. When the
WarehouseAgendaMaterialInsertEvent is launched
the BT notices the call and inserts the BOWarehouseAgendaMaterial basing on the event's input. - Since:
- 14.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(WarehouseAgendaMaterialInsertEvent event, PoolKit poolKit) Inserts the givenBOWarehouseAgendaMaterialand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidate(BOWarehouseAgendaMaterial boWarehouseAgendaMaterial, PoolKit poolKit) Validate the event inputMethods inherited from class overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement
checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
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
-
BTWarehouseAgendaMaterialInsert
public BTWarehouseAgendaMaterialInsert()
-
-
Method Details
-
execute
protected void execute(WarehouseAgendaMaterialInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOWarehouseAgendaMaterialand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<WarehouseAgendaMaterialInsertEvent>- Parameters:
event- theWarehouseAgendaMaterialInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOWarehouseAgendaMaterial boWarehouseAgendaMaterial, PoolKit poolKit) throws DAValidateException, DAException Validate the event input- Parameters:
boWarehouseAgendaMaterial- theBOWarehouseAgendaMaterialto validatepoolKit- the pool kit- Throws:
DAValidateExceptionDAException
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-