Class BTCharacteristicInsert
java.lang.Object
overit.geocall.bl.BusinessTask<CharacteristicInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CharacteristicInsertEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<CharacteristicInsertEvent>
overit.geocallapp.wfm.orchestrator.assets.bl.characteristic.task.BTCharacteristicInsert
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CharacteristicInsertEvent.class)
public class BTCharacteristicInsert
extends ValidPermissionBusinessTask<CharacteristicInsertEvent>
Business task in order to insert a
When the
BOCharacteristic. When the
CharacteristicInsertEvent is launched the BT notices the call and inserts the BOCharacteristic basing on the event's input. Required fields:
- data type
- description
- characteristic class
- value type
Permission:
Error Code:
Codes.MISSING_REQUIRED_MULTILANGUAGE_VALUESCodes.PROPERTY_REQUIREDCodes.Characteristic.CHARACTERISTIC_ALREADY_DEFINED
Autocomplete: Multilanguage
- 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 voidActions to perform after the insertion.protected voidcheckUnique(BOCharacteristic characteristic, PoolKit poolKit) Checks if the given characteristic has a unique code-class.protected voidexecute(CharacteristicInsertEvent event, PoolKit pk) Writes the inserted characteristic id into the event journal.booleanDetermines whether the current state is valid for execution.protected voidvalidate(BOCharacteristic characteristic, PoolKit pk) Validate the 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
-
BTCharacteristicInsert
public BTCharacteristicInsert()
-
-
Method Details
-
execute
protected void execute(CharacteristicInsertEvent event, PoolKit pk) throws DAException, DAValidateException Writes the inserted characteristic id into the event journal.- Specified by:
executein classValidExecutionBusinessTask<CharacteristicInsertEvent>- Parameters:
event- theCharacteristicInsertEventpk- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
validate
protected void validate(BOCharacteristic characteristic, PoolKit pk) throws DAValidateException, DAException Validate the data before the insertion.- Parameters:
characteristic- the currentBOCharacteristicpk- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
checkUnique
protected void checkUnique(BOCharacteristic characteristic, PoolKit poolKit) throws DAValidateException, DAException Checks if the given characteristic has a unique code-class.- Parameters:
characteristic- the currentBOCharacteristicpoolKit- thePoolKit- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
afterInsertion
protected void afterInsertion()Actions to perform after the insertion. -
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
-