Class BTTransferRequestHeaderInsert
java.lang.Object
overit.geocall.bl.BusinessTask<TransferRequestHeaderInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<TransferRequestHeaderInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<TransferRequestHeaderInsertEvent>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<TransferRequestHeaderInsertEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.transfer.request.header.task.BTTransferRequestHeaderInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(TransferRequestHeaderInsertEvent.class)
public class BTTransferRequestHeaderInsert
extends BTInventoryManagement<TransferRequestHeaderInsertEvent>
Business task in order to insert a
When the
BOTransferRequestHeader. When the
TransferRequestHeaderInsertEvent is launched the BT notices the call and inserts the BOTransferRequestHeader basing on the event's input. Required fields:
- Code
- Type
- The picking warehouse
- The destiny warehouse
- Created by mobile flag
- Stock type
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(TransferRequestHeaderInsertEvent event, PoolKit poolKit) Inserts the givenBOTransferRequestHeaderand writes the newly generated id into the event journal.booleanChecks if the execution is valid.protected voidvalidateData(BOTransferRequestHeader header) Validates the transfer request header 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
-
BTTransferRequestHeaderInsert
public BTTransferRequestHeaderInsert()
-
-
Method Details
-
execute
protected void execute(TransferRequestHeaderInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Inserts the givenBOTransferRequestHeaderand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<TransferRequestHeaderInsertEvent>- Parameters:
event- theTransferRequestHeaderInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validateData
Validates the transfer request header data before the insertion.- Parameters:
header- the current transfer request header- Throws:
DAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is valid.- Returns:
- true, if successful
-