Interface VariableInstanceValueModifier
- All Known Implementing Classes:
DefaultVariableInstanceValueModifier
public interface VariableInstanceValueModifier
This interface is the contract for modifying the values for persistent and transient variable instances.
It is called, whenever a value is set to a new variable or an existing (persistent) variable is updated.
- Author:
- Arthur Hupka-Merle
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setVariableValue
(VariableInstance variableInstance, Object value, String tenantId) Sets the value of a new persistent or transient variable instance.void
updateVariableValue
(VariableInstance variableInstance, Object value, String tenantId) Updates the value of a variable instance.
-
Method Details
-
setVariableValue
Sets the value of a new persistent or transient variable instance. This is invoked when a variable instance is created.- Parameters:
variableInstance
- the variable instance to be modifiedvalue
- the new value to be set for the variable instance.tenantId
- the ID of the tenant the variable instance belongs to
-
updateVariableValue
Updates the value of a variable instance. This is invoked when a variable instance already exists and its value is being updated.- Parameters:
variableInstance
- the variable instance to be modifiedvalue
- the value to be set for the updated variable instance.tenantId
- the ID of the tenant the variable instance belongs to
-