Class BTAssetCharacteristicValueInsert
java.lang.Object
overit.geocall.bl.BusinessTask<AssetCharacteristicValueInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<AssetCharacteristicValueInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<AssetCharacteristicValueInsertEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.characteristic.value.task.BTAssetCharacteristicValueInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(AssetCharacteristicValueInsertEvent.class)
public class BTAssetCharacteristicValueInsert
extends ValidPermissionBusinessTask<AssetCharacteristicValueInsertEvent>
Business task in order to insert a
When the
BOAssetCharacteristicValue.
When the
AssetCharacteristicValueInsertEvent is launched the BT
notices the call and inserts the BOAssetCharacteristicValue basing
on the event's input. Required fields:
- Characteristic
- Technical Object
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(AssetCharacteristicValueInsertEvent event, PoolKit poolKit) Writes the inserted characteristic value id into the event journal.protected AssetsIntegrationServicegetIntegrationService(PoolKit poolKit) Returns an instance ofAssetsIntegrationServicebooleanDetermines 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
-
BTAssetCharacteristicValueInsert
public BTAssetCharacteristicValueInsert()
-
-
Method Details
-
execute
protected void execute(AssetCharacteristicValueInsertEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes the inserted characteristic value id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<AssetCharacteristicValueInsertEvent>- Parameters:
event- theAssetCharacteristicValueInsertEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
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
-