Class BTWarehouseAccountingHandle
java.lang.Object
overit.geocall.bl.BusinessTask<WarehouseAccountingHandleEvent>
overit.geocallapp.wfm.inventory.bl.warehouse.operation.task.BTWarehouseAccountingHandle
- All Implemented Interfaces:
Serializable,Tool
@Event(WarehouseAccountingHandleEvent.class)
public class BTWarehouseAccountingHandle
extends BusinessTask<WarehouseAccountingHandleEvent>
Business task in order to handle the generation and the handling of a warehouse operation starting from an accounting action.
- Since:
- 14.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(WarehouseAccountingHandleEvent event, PoolKit poolKit) Implements this method to write the specific task logic to handle the input parameter.protected LongcreateOperation(WarehouseAccountingHandleInput input, Collection<Long> serialsToAd, Collection<Long> serialsToRemove, PoolKit poolKit) Creates theWarehouseOperationby calling theWarehouseOperationCreationFromAccountingEvent.protected Collection<Long> createOperations(WarehouseAccountingHandleInput input, PoolKit poolKit) Returns the log helper.protected LogMessageHelperprotected voidopenLog()Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTWarehouseAccountingHandle
public BTWarehouseAccountingHandle()
-
-
Method Details
-
getLogHelper
Returns the log helper.- Returns:
- the log helper
-
body
protected void body(WarehouseAccountingHandleEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:BusinessTaskImplements this method to write the specific task logic to handle the input parameter.- Specified by:
bodyin classBusinessTask<WarehouseAccountingHandleEvent>- Parameters:
event- the object upon which the task will works onpoolKit- the poolkit containing the reference to the database connection that can be used- Throws:
DAException- in case of database errorDAValidateException- in case of database validation error
-
openLog
- Throws:
DAValidateExceptionDAException
-
getLogMessage
-
createOperations
protected Collection<Long> createOperations(WarehouseAccountingHandleInput input, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
createOperation
protected Long createOperation(WarehouseAccountingHandleInput input, Collection<Long> serialsToAd, Collection<Long> serialsToRemove, PoolKit poolKit) throws DAValidateException, DAException Creates theWarehouseOperationby calling theWarehouseOperationCreationFromAccountingEvent.- Parameters:
input- theWarehouseAccountingHandleInputpoolKit- thePoolKit- Returns:
- the id of the created
WarehouseOperation - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-