public class VariableInstanceEntity extends Object implements VariableInstance, CoreVariableInstance, ValueFields, DbEntity, DbEntityLifecycleAware, TypedValueUpdateListener, HasDbRevision, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
activityInstanceId |
protected ByteArrayField |
byteArrayField |
protected String |
caseExecutionId |
protected String |
caseInstanceId |
protected String |
configuration |
protected Double |
doubleValue |
protected ExecutionEntity |
execution |
protected String |
executionId |
protected String |
id |
protected boolean |
isConcurrentLocal
Determines whether this variable is supposed to be a local variable
in case of concurrency in its scope.
|
protected boolean |
isTransient
Determines whether this variable is stored in the data base.
|
protected static EnginePersistenceLogger |
LOG |
protected Long |
longValue |
protected String |
name |
protected String |
processInstanceId |
protected int |
revision |
protected long |
sequenceCounter |
protected String |
taskId |
protected String |
tenantId |
protected String |
textValue |
protected String |
textValue2 |
protected TypedValueField |
typedValueField |
Constructor and Description |
---|
VariableInstanceEntity() |
VariableInstanceEntity(String name,
org.camunda.bpm.engine.variable.value.TypedValue value,
boolean isTransient) |
Modifier and Type | Method and Description |
---|---|
void |
clearValueFields() |
static VariableInstanceEntity |
create(String name,
org.camunda.bpm.engine.variable.value.TypedValue value,
boolean isTransient) |
static VariableInstanceEntity |
createAndInsert(String name,
org.camunda.bpm.engine.variable.value.TypedValue value) |
void |
delete() |
protected void |
deleteByteArrayValue() |
protected void |
ensureExecutionInitialized() |
boolean |
equals(Object obj) |
String |
getActivityInstanceId()
Returns the corresponding activity instance id.
|
byte[] |
getByteArrayValue() |
String |
getByteArrayValueId() |
CaseExecutionEntity |
getCaseExecution() |
String |
getCaseExecutionId()
Returns the corresponding case execution id.
|
String |
getCaseInstanceId()
Returns the corresponding case instance id.
|
protected ProcessApplicationReference |
getContextProcessApplication() |
Double |
getDoubleValue() |
String |
getErrorMessage()
If the variable value could not be loaded, this returns the error message.
|
ExecutionEntity |
getExecution() |
String |
getExecutionId()
Returns the corresponding execution id.
|
String |
getId() |
Long |
getLongValue() |
String |
getName()
Returns the name of this variable instance.
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessInstanceId()
Returns the corresponding process instance id.
|
int |
getRevision() |
int |
getRevisionNext() |
long |
getSequenceCounter() |
TypedValueSerializer<?> |
getSerializer() |
String |
getSerializerName() |
protected TaskEntity |
getTask() |
String |
getTaskId()
Returns the corresponding task id.
|
String |
getTenantId()
The id of the tenant this variable belongs to.
|
String |
getTextValue() |
String |
getTextValue2() |
org.camunda.bpm.engine.variable.value.TypedValue |
getTypedValue()
Returns the TypedValue of this variable instance.
|
org.camunda.bpm.engine.variable.value.TypedValue |
getTypedValue(boolean deserializeValue) |
String |
getTypeName()
Returns the name of the type of this variable instance
|
Object |
getValue()
Returns the value of this variable instance.
|
protected VariableScope |
getVariableScope() |
String |
getVariableScopeId() |
int |
hashCode() |
void |
incrementSequenceCounter() |
static void |
insert(VariableInstanceEntity variableInstance) |
boolean |
isConcurrentLocal() |
boolean |
isTransient() |
void |
onImplicitValueUpdate(org.camunda.bpm.engine.variable.value.TypedValue updatedValue)
Called when an implicit update to a typed value is detected
|
void |
postLoad() |
void |
setActivityInstanceId(String activityInstanceId) |
void |
setByteArrayValue(byte[] bytes) |
void |
setByteArrayValueId(String byteArrayValueId) |
void |
setCaseExecution(CaseExecutionEntity caseExecution) |
void |
setCaseExecutionId(String caseExecutionId) |
void |
setCaseInstanceId(String caseInstanceId) |
void |
setConcurrentLocal(boolean isConcurrentLocal) |
void |
setDoubleValue(Double doubleValue) |
void |
setExecution(ExecutionEntity execution) |
void |
setExecutionId(String executionId) |
void |
setId(String id) |
void |
setLongValue(Long longValue) |
void |
setName(String name) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRevision(int revision) |
void |
setSequenceCounter(long sequenceCounter) |
void |
setSerializer(TypedValueSerializer<?> serializer) |
void |
setSerializerName(String type) |
void |
setTask(TaskEntity task) |
void |
setTaskId(String taskId) |
void |
setTenantId(String tenantId) |
void |
setTextValue(String textValue) |
void |
setTextValue2(String textValue2) |
void |
setTransient(boolean isTransient) |
void |
setValue(org.camunda.bpm.engine.variable.value.TypedValue value) |
String |
toString() |
protected static final EnginePersistenceLogger LOG
protected String id
protected int revision
protected String name
protected String processInstanceId
protected String executionId
protected String taskId
protected String caseInstanceId
protected String caseExecutionId
protected String activityInstanceId
protected String tenantId
protected Long longValue
protected Double doubleValue
protected String textValue
protected String textValue2
protected ByteArrayField byteArrayField
protected TypedValueField typedValueField
protected String configuration
protected long sequenceCounter
protected boolean isConcurrentLocal
Determines whether this variable is supposed to be a local variable in case of concurrency in its scope. This affects
In the future, this field could be used for restoring the variable distribution when the tree is expanded/compacted multiple times. On expansion, the goal would be to keep concurrentLocal variables always with their concurrent replacing executions while non-concurrentLocal variables stay in the scope execution
protected boolean isTransient
protected ExecutionEntity execution
public VariableInstanceEntity()
public VariableInstanceEntity(String name, org.camunda.bpm.engine.variable.value.TypedValue value, boolean isTransient)
public static VariableInstanceEntity createAndInsert(String name, org.camunda.bpm.engine.variable.value.TypedValue value)
public static void insert(VariableInstanceEntity variableInstance)
public static VariableInstanceEntity create(String name, org.camunda.bpm.engine.variable.value.TypedValue value, boolean isTransient)
public void delete()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public void setProcessInstanceId(String processInstanceId)
public void setExecutionId(String executionId)
public void setCaseInstanceId(String caseInstanceId)
public void setCaseExecutionId(String caseExecutionId)
public void setCaseExecution(CaseExecutionEntity caseExecution)
public String getByteArrayValueId()
public void setByteArrayValueId(String byteArrayValueId)
public byte[] getByteArrayValue()
getByteArrayValue
in interface ValueFields
public void setByteArrayValue(byte[] bytes)
setByteArrayValue
in interface ValueFields
protected void deleteByteArrayValue()
public Object getValue()
VariableInstance
getValue
in interface VariableInstance
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
VariableInstance
getTypedValue
in interface VariableInstance
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue(boolean deserializeValue)
getTypedValue
in interface CoreVariableInstance
public void setValue(org.camunda.bpm.engine.variable.value.TypedValue value)
setValue
in interface CoreVariableInstance
public void clearValueFields()
public String getTypeName()
VariableInstance
getTypeName
in interface VariableInstance
public void postLoad()
postLoad
in interface DbEntityLifecycleAware
protected void ensureExecutionInitialized()
public ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
public CaseExecutionEntity getCaseExecution()
public String getId()
getId
in interface DbEntity
getId
in interface VariableInstance
public String getTextValue()
getTextValue
in interface ValueFields
public String getProcessInstanceId()
VariableInstance
getProcessInstanceId
in interface VariableInstance
public String getExecutionId()
VariableInstance
getExecutionId
in interface VariableInstance
public String getCaseInstanceId()
VariableInstance
getCaseInstanceId
in interface VariableInstance
public String getCaseExecutionId()
VariableInstance
getCaseExecutionId
in interface VariableInstance
public Long getLongValue()
getLongValue
in interface ValueFields
public void setLongValue(Long longValue)
setLongValue
in interface ValueFields
public Double getDoubleValue()
getDoubleValue
in interface ValueFields
public void setDoubleValue(Double doubleValue)
setDoubleValue
in interface ValueFields
public void setName(String name)
public void setTextValue(String textValue)
setTextValue
in interface ValueFields
public String getName()
VariableInstance
getName
in interface CoreVariableInstance
getName
in interface Nameable
getName
in interface VariableInstance
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public void setSerializer(TypedValueSerializer<?> serializer)
public void setSerializerName(String type)
public TypedValueSerializer<?> getSerializer()
public String getTextValue2()
getTextValue2
in interface ValueFields
public void setTextValue2(String textValue2)
setTextValue2
in interface ValueFields
public String getTaskId()
VariableInstance
getTaskId
in interface VariableInstance
public void setTaskId(String taskId)
public void setTask(TaskEntity task)
public String getActivityInstanceId()
VariableInstance
getActivityInstanceId
in interface VariableInstance
public void setActivityInstanceId(String activityInstanceId)
public String getSerializerName()
public String getErrorMessage()
VariableInstance
getErrorMessage
in interface VariableInstance
public String getVariableScopeId()
protected VariableScope getVariableScope()
protected TaskEntity getTask()
public long getSequenceCounter()
public void setSequenceCounter(long sequenceCounter)
public void incrementSequenceCounter()
public boolean isConcurrentLocal()
public void setConcurrentLocal(boolean isConcurrentLocal)
public void onImplicitValueUpdate(org.camunda.bpm.engine.variable.value.TypedValue updatedValue)
TypedValueUpdateListener
onImplicitValueUpdate
in interface TypedValueUpdateListener
protected ProcessApplicationReference getContextProcessApplication()
public void setTransient(boolean isTransient)
isTransient
- true
, if the variable is not stored in the data base.
Default is false
.public boolean isTransient()
true
, if the variable is transient. A transient
variable is not stored in the data base.public String getTenantId()
VariableInstance
null
if the variable belongs to no single tenant.getTenantId
in interface VariableInstance
public void setTenantId(String tenantId)
Copyright © 2018. All rights reserved.