Class TransientVariableInstance
java.lang.Object
org.flowable.variable.service.impl.persistence.entity.TransientVariableInstance
- All Implemented Interfaces:
VariableInstance
,ValueFields
A dummy implementation of
VariableInstance
, used for storing transient variables on a VariableScope
, as the VariableScope
works with instances of VariableInstance
and not with raw key/values.
Nothing more than a thin wrapper around a name and value. All the other methods are not implemented.- Author:
- Joram Barrez
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
getId()
getName()
getValue()
void
setBytes
(byte[] bytes) Sets the byte array value.void
setCachedValue
(Object cachedValue) void
setDoubleValue
(Double doubleValue) Sets the double value.void
setExecutionId
(String executionId) void
void
setLongValue
(Long longValue) Sets the long value.void
setMetaInfo
(String metaInfo) void
void
setProcessDefinitionId
(String processDefinitionId) void
setProcessInstanceId
(String processInstanceId) void
setScopeDefinitionId
(String scopeDefinitionId) void
setScopeId
(String scopeId) void
setScopeType
(String scopeType) void
setSubScopeId
(String subScopeId) void
void
setTextValue
(String textValue) Sets the first text value.void
setTextValue2
(String textValue2) Sets second text value.void
setTypeName
(String typeName) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.variable.api.persistence.entity.VariableInstance
isReadOnly
-
Field Details
-
TYPE_TRANSIENT
- See Also:
-
variableName
-
variableValue
-
taskId
-
executionId
-
processInstanceId
-
processDefinitionId
-
scopeId
-
subScopeId
-
scopeDefinitionId
-
scopeType
-
metaInfo
-
-
Constructor Details
-
TransientVariableInstance
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceValueFields
- Returns:
- the name of the variable
-
getId
- Specified by:
getId
in interfaceVariableInstance
-
setId
- Specified by:
setId
in interfaceVariableInstance
-
setName
- Specified by:
setName
in interfaceVariableInstance
-
setProcessInstanceId
- Specified by:
setProcessInstanceId
in interfaceVariableInstance
-
setProcessDefinitionId
- Specified by:
setProcessDefinitionId
in interfaceVariableInstance
-
setExecutionId
- Specified by:
setExecutionId
in interfaceVariableInstance
-
getValue
- Specified by:
getValue
in interfaceVariableInstance
-
setValue
- Specified by:
setValue
in interfaceVariableInstance
-
getTypeName
- Specified by:
getTypeName
in interfaceVariableInstance
-
setTypeName
- Specified by:
setTypeName
in interfaceVariableInstance
-
getProcessInstanceId
- Specified by:
getProcessInstanceId
in interfaceValueFields
- Returns:
- the process instance id of the variable
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionId
in interfaceVariableInstance
-
getTaskId
- Specified by:
getTaskId
in interfaceValueFields
- Returns:
- the task id of the variable
-
setTaskId
- Specified by:
setTaskId
in interfaceVariableInstance
-
getExecutionId
- Specified by:
getExecutionId
in interfaceValueFields
- Returns:
- the execution id of the variable
-
getScopeId
- Specified by:
getScopeId
in interfaceValueFields
- Returns:
- the scope id of the variable
-
getScopeType
- Specified by:
getScopeType
in interfaceValueFields
- Returns:
- the scope type of the variable
-
setScopeId
- Specified by:
setScopeId
in interfaceVariableInstance
-
getSubScopeId
- Specified by:
getSubScopeId
in interfaceValueFields
- Returns:
- the sub scope id of the variable
-
setSubScopeId
- Specified by:
setSubScopeId
in interfaceVariableInstance
-
setScopeType
- Specified by:
setScopeType
in interfaceVariableInstance
-
getScopeDefinitionId
- Specified by:
getScopeDefinitionId
in interfaceVariableInstance
-
setScopeDefinitionId
- Specified by:
setScopeDefinitionId
in interfaceVariableInstance
-
getMetaInfo
- Specified by:
getMetaInfo
in interfaceVariableInstance
-
setMetaInfo
- Specified by:
setMetaInfo
in interfaceVariableInstance
-
getTextValue
- Specified by:
getTextValue
in interfaceValueFields
- Returns:
- the first text value, if any, or null.
-
setTextValue
Description copied from interface:ValueFields
Sets the first text value. A value of null is allowed.- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
- Specified by:
getTextValue2
in interfaceValueFields
- Returns:
- the second text value, if any, or null.
-
setTextValue2
Description copied from interface:ValueFields
Sets second text value. A value of null is allowed.- Specified by:
setTextValue2
in interfaceValueFields
-
getLongValue
- Specified by:
getLongValue
in interfaceValueFields
- Returns:
- the long value, if any, or null.
-
setLongValue
Description copied from interface:ValueFields
Sets the long value. A value of null is allowed.- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
- Specified by:
getDoubleValue
in interfaceValueFields
- Returns:
- the double value, if any, or null.
-
setDoubleValue
Description copied from interface:ValueFields
Sets the double value. A value of null is allowed.- Specified by:
setDoubleValue
in interfaceValueFields
-
getBytes
public byte[] getBytes()- Specified by:
getBytes
in interfaceValueFields
- Returns:
- the byte array value, if any, or null.
-
setBytes
public void setBytes(byte[] bytes) Description copied from interface:ValueFields
Sets the byte array value. A value of null is allowed.- Specified by:
setBytes
in interfaceValueFields
-
getCachedValue
- Specified by:
getCachedValue
in interfaceValueFields
-
setCachedValue
- Specified by:
setCachedValue
in interfaceValueFields
-