Class BTWarehouseOperationCreationFromAccounting
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput>>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput>>
overit.geocallapp.wfm.inventory.bl.task.BTInventoryManagement<WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput>>
overit.geocallapp.wfm.inventory.bl.warehouse.operation.task.BTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>
overit.geocallapp.wfm.inventory.bl.warehouse.operation.task.BTWarehouseOperationCreationFromAccounting
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(WarehouseOperationCreationFromAccountingEvent.class)
public class BTWarehouseOperationCreationFromAccounting
extends BTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>
Business task in order to create a
When the
WarehouseOperation starting from an accounting. When the
WarehouseOperationCreationFromAccountingEvent is launched
the BT notices the call and creates the WarehouseOperation basing on the event's input. - Since:
- 14.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BOWarehouseOperationHeaderBuilds theBOWarehouseOperationHeaderstarting from the accounting data.protected voidcreateOperationItems(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) Creates theBOWarehouseOperationItemstarting from the givenWarehouseOperationCreationFromAccountingInput.protected BOWarehouseOperationHeaderSourceCreates the operation source.protected voidexecute(WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput> event, PoolKit poolKit) Executes the process of creating a newWarehouseOperation.protected LogHelperReturns the input log.protected LonggetOperationType(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) Returns theWarehouseOperationtype.protected booleanprotected BOWarehouseAgendaMaterialloadWarehouseAgendaMaterial(Long id, PoolKit poolKit) Loads theBOWarehouseAgendaMaterialfrom the given id.protected voidvalidate(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) Validates the data before the creation.Methods inherited from class overit.geocallapp.wfm.inventory.bl.warehouse.operation.task.BTWarehouseOperationCreation
completeOperation, getLogHelper, getWarehouseOperation, getWarehouseOperationType, initialize, isValidExecution, saveWarehouseOperationMethods 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
-
Field Details
-
warehouseAgendaMaterial
-
-
Constructor Details
-
BTWarehouseOperationCreationFromAccounting
public BTWarehouseOperationCreationFromAccounting()
-
-
Method Details
-
execute
protected void execute(WarehouseOperationCreationEvent<WarehouseOperationCreationFromAccountingInput> event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BTWarehouseOperationCreationExecutes the process of creating a newWarehouseOperation.- Overrides:
executein classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
event- the event that extendsWarehouseOperationCreationEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getOperationType
protected Long getOperationType(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) throws DAException, DAValidateException Returns theWarehouseOperationtype.- Specified by:
getOperationTypein classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- theWarehouseOperationCreationFromAccountingInputpoolKit- thePoolKit- Returns:
- the
BOWarehouseOperationType - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isAdjustmentOperation
-
loadWarehouseAgendaMaterial
protected BOWarehouseAgendaMaterial loadWarehouseAgendaMaterial(Long id, PoolKit poolKit) throws DAValidateException, DAException Loads theBOWarehouseAgendaMaterialfrom the given id.- Parameters:
id- theBOWarehouseAgendaMaterialidpoolKit- thePoolKit- Returns:
- the loaded
BOWarehouseAgendaMaterial - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
validate
protected void validate(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) throws DAValidateException, DAException Validates the data before the creation.- Specified by:
validatein classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- theWarehouseOperationCreationFromAccountingInputpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
createOperationHeader
protected BOWarehouseOperationHeader createOperationHeader(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) Builds theBOWarehouseOperationHeaderstarting from the accounting data.- Specified by:
createOperationHeaderin classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- theWarehouseOperationCreationFromAccountingInputpoolKit- thePoolKit- Returns:
- the just built
BOWarehouseOperationHeader
-
createOperationSource
protected BOWarehouseOperationHeaderSource createOperationSource(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) Creates the operation source.- Specified by:
createOperationSourcein classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- theWarehouseOperationCreationFromAccountingInputpoolKit- thePoolKit- Returns:
- the created
BOWarehouseOperationHeaderSource
-
createOperationItems
protected void createOperationItems(WarehouseOperationCreationFromAccountingInput input, PoolKit poolKit) throws DAException, DAValidateException Creates theBOWarehouseOperationItemstarting from the givenWarehouseOperationCreationFromAccountingInput.- Specified by:
createOperationItemsin classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- theWarehouseOperationCreationFromAccountingInputpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getInputLog
Description copied from class:BTWarehouseOperationCreationReturns the input log.- Specified by:
getInputLogin classBTWarehouseOperationCreation<WarehouseOperationCreationFromAccountingInput>- Parameters:
input- the input- Returns:
- the input log
-