Class BTTransferRequestItemInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TransferRequestItemInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TransferRequestItemInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TransferRequestItemInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<TransferRequestItemInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.transfer.request.item.task.BTTransferRequestItemInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TransferRequestItemInsertEvent.class)
public class BTTransferRequestItemInsert
extends BTInventoryManagement<TransferRequestItemInsertEvent>
Business task in order to insert a
When the
BOTransferRequestItem. When the
TransferRequestItemInsertEvent is launched the BT notices the call and inserts the BOTransferRequestItem basing on the event's input. Required fields:
- Header
- Material
- Stock type
- Quantity
- Measure unit
Permission:
Error Code:
Codes.PROPERTY_REQUIRED: Mandatory field not found.
- 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(TransferRequestItemInsertEvent event, PoolKit poolKit) Inserts the givenBOTransferRequestItemand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidValidates the transfer request item data before the insertion.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
-
BTTransferRequestItemInsert
public BTTransferRequestItemInsert()
-
-
Method Details
-
execute
protected void execute(TransferRequestItemInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOTransferRequestItemand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<TransferRequestItemInsertEvent>- Parameters:
event- theTransferRequestItemInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateData
Validates the transfer request item data before the insertion.- Parameters:
item- the current transfer request item- Throws:
DAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-