Package org.flowable.variable.api.types
Interface VariableType
public interface VariableType
- Author:
- Tom Baeyens
-
Method Summary
Modifier and TypeMethodDescriptionname of variable type (limited to 100 characters length)getValue(ValueFields valueFields) booleanisAbleToStore(Object value) booleanIndicates if this variable type supports caching.default booleanvoidsetValue(Object value, ValueFields valueFields) Stores the specified value in the suppliedValueFields.
-
Method Details
-
getTypeName
String getTypeName()name of variable type (limited to 100 characters length) -
isCachable
boolean isCachable()Indicates if this variable type supports caching.
If caching is supported, the result of
getValue(ValueFields)is saved for the duration of the session and used for subsequent reads of the variable's value.If caching is not supported, all reads of a variable's value require a fresh call to
getValue(ValueFields).- Returns:
- whether variables of this type are cacheable.
-
isAbleToStore
- Returns:
- whether this variable type can store the specified value.
-
setValue
Stores the specified value in the suppliedValueFields. -
getValue
- Returns:
- the value of a variable based on the specified
ValueFields.
-
isReadOnly
default boolean isReadOnly()
-