Class BTWarehouseMaterialDeactivate
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseMaterialDeactivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseMaterialDeactivateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseMaterialDeactivateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseMaterialDeactivateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.material.task.BTWarehouseMaterialDeactivate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseMaterialDeactivateEvent.class)
public class BTWarehouseMaterialDeactivate
extends BTInventoryManagement<WarehouseMaterialDeactivateEvent>
Business task in order to activate a
When the
BOWarehouseMaterial. When the
WarehouseMaterialDeactivateEvent is launched the BT notices the call and deactivates the BOWarehouseMaterial basing on the
event's input. Required fields:
- Warehouse material id
Permission:
- 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(WarehouseMaterialDeactivateEvent event, PoolKit poolKit) Activate the givenBOWarehouseMaterial.booleanChecks if the execution is valid.Methods 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
-
BTWarehouseMaterialDeactivate
public BTWarehouseMaterialDeactivate()
-
-
Method Details
-
execute
protected void execute(WarehouseMaterialDeactivateEvent event, PoolKit poolKit) throws DAException, DAValidateException Activate the givenBOWarehouseMaterial.- Specified by:
executein classValidExecutionBusinessTask<WarehouseMaterialDeactivateEvent>- Parameters:
event- theWarehouseMaterialDeactivateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-