Package org.flowable.variable.api.types
Interface VariableTypes
public interface VariableTypes
Interface describing a container for all available
VariableType
s of variables.- Author:
- dsyer, Frederik Heremans
-
Method Summary
Modifier and TypeMethodDescriptionaddType
(VariableType type) addType
(VariableType type, int index) Add type at the given index.default VariableTypes
addTypeBefore
(VariableType type, String afterTypeName) Add the variable type before the type with the given name.findVariableType
(Object value) int
getTypeIndex
(String typeName) int
getTypeIndex
(VariableType type) getVariableType
(String typeName) removeType
(VariableType type)
-
Method Details
-
getVariableType
- Returns:
- the type for the given type name. Returns null if no type was found with the name.
-
findVariableType
- Returns:
- the variable type to be used to store the given value as a variable.
- Throws:
org.flowable.common.engine.api.FlowableException
- When no available type is capable of storing the value.
-
addType
-
addTypeBefore
Add the variable type before the type with the given name. When a type with the requested name is not registered then useaddType(VariableType)
- Parameters:
type
- the type to addafterTypeName
- the name of the other type
-
addType
Add type at the given index. The index is used when finding a type for an object. When different types can store a specific object value, the one with the smallest index will be used. -
getTypeIndex
-
getTypeIndex
-
removeType
-