Class BTAssetCharacteristicValueUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<AssetCharacteristicValueUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetCharacteristicValueUpdateEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetCharacteristicValueUpdateEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.characteristic.value.task.BTAssetCharacteristicValueUpdate
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetCharacteristicValueUpdateEvent.class)
public class BTAssetCharacteristicValueUpdate
extends ValidPermissionBusinessTask<AssetCharacteristicValueUpdateEvent>
Business task in order to update a
When the
Required fields:
BOAssetCharacteristicValue. When the
AssetCharacteristicValueUpdateEvent is launched the BT
notices the call and updates the BOAssetCharacteristicValue basing
on the event's input. Required fields:
- Asset Characteristic Value id
Permission:
Error code:
- Since:
- 16.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(AssetCharacteristicValueUpdateEvent event, PoolKit poolKit) Updates a newBOAssetCharacteristicValuewith all its needed components.protected AssetsIntegrationServicegetIntegrationService(PoolKit poolKit) Returns an instance ofAssetsIntegrationServiceprotected Collection<String> booleanDetermines whether the current state is valid for execution.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
-
BTAssetCharacteristicValueUpdate
public BTAssetCharacteristicValueUpdate()
-
-
Method Details
-
execute
protected void execute(AssetCharacteristicValueUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates a newBOAssetCharacteristicValuewith all its needed components.- Specified by:
executein classValidExecutionBusinessTask<AssetCharacteristicValueUpdateEvent>- Parameters:
event- theAssetCharacteristicValueUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
getUnmodifiableFields
-
getIntegrationService
protected AssetsIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Returns an instance ofAssetsIntegrationService- Parameters:
poolKit- thePoolKit- Returns:
- an instance of
AssetsIntegrationService - Throws:
DAValidateException
-
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
-