Class BTAssetOperationCenterInsert
java.lang.Object
overit.geocall.bl.BusinessTask<AssetOperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetOperationCenterInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetOperationCenterInsertEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.operationcenter.task.BTAssetOperationCenterInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetOperationCenterInsertEvent.class)
public class BTAssetOperationCenterInsert
extends ValidPermissionBusinessTask<AssetOperationCenterInsertEvent>
Business task in order to insert a
When the
BOAssetOperationCenter. When the
AssetOperationCenterInsertEvent is launched the BT notices the call and
inserts the BOAssetOperationCenter basing on the event's input. Permission:
- Since:
- 18.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 voidcheckValidRelationWorkOrderTypeStructure(BOAssetOperationCenter input, PoolKit poolKit) Checks if there are any relations between the structure and the work order typeprotected voidexecute(AssetOperationCenterInsertEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.getIntegrationService(PoolKit poolKit) Return theAssetsEventIntegrationServiceused to access other domainsbooleanDetermines whether the current state is valid for execution.protected voidvalidateInput(BOAssetOperationCenter input, PoolKit poolKit) Validates the data before performing any action that require the inputMethods 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
-
BTAssetOperationCenterInsert
public BTAssetOperationCenterInsert()
-
-
Method Details
-
execute
protected void execute(AssetOperationCenterInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<AssetOperationCenterInsertEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
validateInput
protected void validateInput(BOAssetOperationCenter input, PoolKit poolKit) throws DAValidateException, DAException Validates the data before performing any action that require the input- Parameters:
input- theBOAssetOperationCenterobject to be validatedpoolKit- thePoolKit- Throws:
DAValidateException- theDAValidateExceptionthrown if the asset id is nullCodes.PROPERTY_REQUIREDor if theBOAssetresource doesn't exist inLoadEventDAException- theDAExceptiongeneric error thrown if there are code related errors inLoadEvent
-
checkValidRelationWorkOrderTypeStructure
protected void checkValidRelationWorkOrderTypeStructure(BOAssetOperationCenter input, PoolKit poolKit) throws DAValidateException, DAException Checks if there are any relations between the structure and the work order type- Parameters:
input- theBOAssetOperationCenterthat contains the information for the filterspoolKit- thePoolKit- Throws:
DAException- theDAExceptiongeneric error thrown if there are code related errorsDAValidateException- theDAValidateExceptionthrown if there are data related loading errors
-
getIntegrationService
Return theAssetsEventIntegrationServiceused to access other domains- Parameters:
poolKit- thePoolKit- Returns:
- the
AssetsEventIntegrationServiceused to access services and events in other domains - Throws:
DAValidateException- thrown if there are data related loading errors
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-