Class BTAccountedSerializedMaterialInsert
java.lang.Object
overit.geocall.bl.BusinessTask<AccountedSerializedMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AccountedSerializedMaterialInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AccountedSerializedMaterialInsertEvent>
overit.geocallapp.wfm.core.bl.material.serialized.accounted.task.BTAccountedSerializedMaterialInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AccountedSerializedMaterialInsertEvent.class)
public class BTAccountedSerializedMaterialInsert
extends ValidPermissionBusinessTask<AccountedSerializedMaterialInsertEvent>
Business task in order to insert a
When the
BOAccountedSerializedMaterial. When the
AccountedSerializedMaterialInsertEvent is launched the BT notices the call and inserts the BOAccountedSerializedMaterial
basing on the event's input. Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property operationCodes.INVALID_PROPERTY_VALUE: Invalid value for property agendaCodes.INVALID_PROPERTY_VALUE: Invalid value for property serialized materialCodes.INVALID_PROPERTY_VALUE: Invalid value for property accounting type
- Since:
- 14.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(AccountedSerializedMaterialInsertEvent event, PoolKit pk) Inserts the givenBOMaterialItemTypeand writes the newly generated id into the event journal.booleanChecks if the execution is execution.voidvalidateData(BOAccountedSerializedMaterial accountedSerializedMaterial, PoolKit pk) Validates the material item type data before the insertion.Methods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, 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
-
BTAccountedSerializedMaterialInsert
public BTAccountedSerializedMaterialInsert()
-
-
Method Details
-
execute
protected void execute(AccountedSerializedMaterialInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBOMaterialItemTypeand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<AccountedSerializedMaterialInsertEvent>- Parameters:
event- theMaterialItemTypeInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isValidExecution
public boolean isValidExecution()Checks if the execution is execution.- Returns:
- true, if successful
-
validateData
public void validateData(BOAccountedSerializedMaterial accountedSerializedMaterial, PoolKit pk) throws DAValidateException, DAException Validates the material item type data before the insertion.- Parameters:
accountedSerializedMaterial- the accounted serialized materialpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-