Class BTWarehouseTransactionGenerate
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseTransactionGenerateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseTransactionGenerateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseTransactionGenerateEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseTransactionGenerateEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.transaction.task.BTWarehouseTransactionGenerate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseTransactionGenerateEvent.class)
public class BTWarehouseTransactionGenerate
extends BTInventoryManagement<WarehouseTransactionGenerateEvent>
Business task in order to generate a
When the
BOWarehouseTransaction and perform the stock movements. When the
WarehouseTransactionGenerateEvent is launched the BT notices the call and generates the BOWarehouseTransaction basing on the event's input. Required fields:
- warehouse
- material
- type
- stockType
- referenceDate
- measureUnit
Permission:
Error Code:
Codes.PROPERTY_REQUIRED: Property {0} is requiredCodes.Inventory.MATERIAL_NOT_IN_STOCK: Material not managed in stock.Codes.Inventory.WRONG_WAREHOUSE_OPERATION_PARAMETRIZATION: Wrong warehouse transaction parameterization, quantity not defined.
- Since:
- 13.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(WarehouseTransactionGenerateEvent event, PoolKit poolKit) After inserting the newBOWarehouseTransaction, it launch its elaboration by calling theWarehouseTransactionEvaluateEvent.Returns the log helper.booleanChecks if the execution is valid.protected voidvalidate(WarehouseTransactionGenerateInput input, PoolKit poolKit) Validates the data before the generation.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
-
BTWarehouseTransactionGenerate
public BTWarehouseTransactionGenerate()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-
getLogHelper
Returns the log helper.- Returns:
- the log helper
-
execute
protected void execute(WarehouseTransactionGenerateEvent event, PoolKit poolKit) throws DAException, DAValidateException After inserting the newBOWarehouseTransaction, it launch its elaboration by calling theWarehouseTransactionEvaluateEvent.- Specified by:
executein classValidExecutionBusinessTask<WarehouseTransactionGenerateEvent>- Parameters:
event- theWarehouseTransactionGenerateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(WarehouseTransactionGenerateInput input, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the generation.- Parameters:
input- theWarehouseTransactionGenerateInputpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-