Class BTGoodsGroupInsert
java.lang.Object
overit.geocall.bl.BusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<GoodsGroupInsertEvent>
overit.geocallapp.wfm.core.bl.material.goodsgroup.task.BTGoodsGroupInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(GoodsGroupInsertEvent.class)
public class BTGoodsGroupInsert
extends ValidPermissionBusinessTask<GoodsGroupInsertEvent>
Business task in order to insert a
When the
BOGoodsGroup. When the
GoodsGroupInsertEvent is launched the BT notices the call
and inserts the BOGoodsGroup basing on the event's input. Error Code:
Codes.INVALID_PROPERTY_VALUE: Invalid value for property feature class type
- 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(GoodsGroupInsertEvent event, PoolKit pk) Inserts the givenBOGoodsGroupand writes the newly generated id into the event journal.booleanChecks if the execution is execution.voidvalidateData(BOGoodsGroup goodsGroup, PoolKit pk) Validates the goods group data before the update.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
-
BTGoodsGroupInsert
public BTGoodsGroupInsert()
-
-
Method Details
-
execute
protected void execute(GoodsGroupInsertEvent event, PoolKit pk) throws DAException, DAValidateException Inserts the givenBOGoodsGroupand writes the newly generated id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<GoodsGroupInsertEvent>- Parameters:
event- theGoodsGroupInsertEventpk- 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(BOGoodsGroup goodsGroup, PoolKit pk) throws DAValidateException, DAException Validates the goods group data before the update.- Parameters:
goodsGroup- the current goods grouppk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-