Interface DataObjectInstanceVariableContainer
- All Superinterfaces:
VariableContainer
- All Known Implementing Classes:
DataObjectDataDictionaryTypedDetachedInstance
,DataObjectDataDictionaryTypedInstance
,DataObjectInstanceVariableContainerImpl
,DetachedDataObjectInstanceVariableContainer
A data object instance variable container.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptiondefault Boolean
getBoolean
(String property) getData()
default Date
Returns the id of the master data definition this instance belongs to.Returns the key of the master data definition this instance belongs to.default Double
getId()
default Integer
getInteger
(String property) default LocalDate
getLocalDate
(String property) default Long
Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.default String
The tenant id of the definition<T> T
Get a value for the givenproperty
with the givevalueType
default Object
getVariable
(String variableName) boolean
Check whether the data object instance has the given propertydefault boolean
hasVariable
(String variableName) An iterable of all the names of the properties for this data object instance.default Object
removeValue
(String property) <T> T
removeValue
(String property, Class<T> propertyClass) void
<T> void
default void
setVariable
(String variableName, Object variableValue) Methods inherited from interface org.flowable.common.engine.api.variable.VariableContainer
setTransientVariable
-
Method Details
-
getId
Object getId() -
setId
-
getLookupId
Object getLookupId()Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.- Returns:
- the lookup id of this data object, as given and used by the data source managing this data object instance
-
getDefinitionId
String getDefinitionId()Returns the id of the master data definition this instance belongs to.- Returns:
- the id of the master data definition
-
getDefinitionKey
String getDefinitionKey()Returns the key of the master data definition this instance belongs to.- Returns:
- the key of the master data definition
-
getString
-
getBoolean
-
getInteger
-
getLong
-
getDouble
-
getDate
-
getLocalDate
-
getValue
Get a value for the givenproperty
with the givevalueType
- Type Parameters:
T
- the type of the value- Parameters:
property
- the name of the propertyvalueType
- the type of the value- Returns:
- the value for the given property
-
hasValue
Check whether the data object instance has the given property- Parameters:
property
- the name of the property- Returns:
true
if this data object instance has a property with given name,false
otherwise
-
hasVariable
- Specified by:
hasVariable
in interfaceVariableContainer
-
getVariable
- Specified by:
getVariable
in interfaceVariableContainer
-
setValue
-
removeValue
-
removeValue
-
setVariable
- Specified by:
setVariable
in interfaceVariableContainer
-
getTenantId
String getTenantId()The tenant id of the definition- Specified by:
getTenantId
in interfaceVariableContainer
- Returns:
- the tenant id of the definition
-
propertyNames
An iterable of all the names of the properties for this data object instance.- Returns:
- iterator of the properties
-
getData
Object getData()
-