Interface DataObjectInstanceVariableContainer
-
- All Superinterfaces:
VariableContainer
- All Known Implementing Classes:
DataObjectInstanceVariableContainerImpl,DetachedDataObjectInstanceVariableContainer
public interface DataObjectInstanceVariableContainer extends VariableContainer
A data object instance variable container.- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default BooleangetBoolean(String property)ObjectgetData()default DategetDate(String property)StringgetDefinitionId()Returns the id of the master data definition this instance belongs to.StringgetDefinitionKey()Returns the key of the master data definition this instance belongs to.default DoublegetDouble(String property)ObjectgetId()default IntegergetInteger(String property)default LocalDategetLocalDate(String property)default LonggetLong(String property)ObjectgetLookupId()Returns the lookup id of this data object instance, which needs to be unique only within the same data object definition and source.default StringgetString(String property)StringgetTenantId()The tenant id of the definition<T> TgetValue(String property, Class<T> valueType)Get a value for the givenpropertywith the givevalueTypedefault ObjectgetVariable(String variableName)booleanhasValue(String property)Check whether the data object instance has the given propertydefault booleanhasVariable(String variableName)Iterable<String>propertyNames()An iterable of all the names of the properties for this data object instance.default ObjectremoveValue(String property)<T> TremoveValue(String property, Class<T> propertyClass)voidsetId(Object id)<T> voidsetValue(String property, T value)default voidsetVariable(String variableName, Object variableValue)-
Methods inherited from interface org.flowable.common.engine.api.variable.VariableContainer
setTransientVariable
-
-
-
-
Method Detail
-
getId
Object getId()
-
setId
void setId(Object id)
-
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
-
getValue
<T> T getValue(String property, Class<T> valueType)
Get a value for the givenpropertywith 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
boolean hasValue(String property)
Check whether the data object instance has the given property- Parameters:
property- the name of the property- Returns:
trueif this data object instance has a property with given name,falseotherwise
-
hasVariable
default boolean hasVariable(String variableName)
- Specified by:
hasVariablein interfaceVariableContainer
-
getVariable
default Object getVariable(String variableName)
- Specified by:
getVariablein interfaceVariableContainer
-
setValue
<T> void setValue(String property, T value)
-
setVariable
default void setVariable(String variableName, Object variableValue)
- Specified by:
setVariablein interfaceVariableContainer
-
getTenantId
String getTenantId()
The tenant id of the definition- Specified by:
getTenantIdin interfaceVariableContainer- Returns:
- the tenant id of the definition
-
propertyNames
Iterable<String> propertyNames()
An iterable of all the names of the properties for this data object instance.- Returns:
- iterator of the properties
-
getData
Object getData()
-
-