public class VariableInstanceEntity extends Object implements VariableInstance, CoreVariableInstance, ValueFields, DbEntity, DbEntityLifecycleAware, CommandContextListener, HasDbRevision, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityInstanceId |
protected ByteArrayEntity |
byteArrayValue |
protected String |
byteArrayValueId |
protected TypedValue |
cachedValue |
protected String |
caseExecutionId |
protected String |
caseInstanceId |
protected String |
configuration |
protected Double |
doubleValue |
protected String |
errorMessage |
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 Long |
longValue |
protected String |
name |
protected String |
processInstanceId |
protected int |
revision |
protected long |
sequenceCounter |
protected TypedValueSerializer |
serializer |
protected String |
serializerName
the name of the serializer used to serialize the value of this variable
|
protected String |
taskId |
protected String |
textValue |
protected String |
textValue2 |
| Constructor and Description |
|---|
VariableInstanceEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearValueFields() |
static VariableInstanceEntity |
create(String name,
TypedValue value) |
static VariableInstanceEntity |
createAndInsert(String name,
TypedValue value) |
void |
delete() |
protected void |
deleteByteArrayValue() |
protected void |
ensureSerializerInitialized() |
boolean |
equals(Object obj) |
String |
getActivityInstanceId()
Returns the corresponding activity instance id.
|
protected ByteArrayEntity |
getByteArrayEntity() |
byte[] |
getByteArrayValue() |
String |
getByteArrayValueId() |
TypedValue |
getCachedValue() |
CaseExecutionEntity |
getCaseExecution() |
String |
getCaseExecutionId()
Returns the corresponding case execution id.
|
String |
getCaseInstanceId()
Returns the corresponding case instance id.
|
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() |
static VariableSerializers |
getSerializers() |
String |
getTaskId()
Returns the corresponding task id.
|
String |
getTextValue() |
String |
getTextValue2() |
TypedValue |
getTypedValue()
Returns the TypedValue of this variable instance.
|
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() |
protected boolean |
isValuedImplicitlyUpdated() |
void |
onCommandContextClose(CommandContext commandContext) |
void |
onCommandFailed(CommandContext commandContext,
Throwable t) |
void |
onImplicitValueUpdate(TypedValue updatedValue) |
void |
postLoad() |
void |
setActivityInstanceId(String activityInstanceId) |
void |
setByteArrayValue(byte[] bytes) |
void |
setByteArrayValueId(String byteArrayValueId) |
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 |
setTaskId(String taskId) |
void |
setTextValue(String textValue) |
void |
setTextValue2(String textValue2) |
TypedValue |
setValue(TypedValue value) |
String |
toString() |
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 Long longValue
protected Double doubleValue
protected String textValue
protected String textValue2
protected ByteArrayEntity byteArrayValue
protected String byteArrayValueId
protected TypedValue cachedValue
protected String serializerName
protected TypedValueSerializer serializer
protected String errorMessage
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
public static VariableInstanceEntity createAndInsert(String name, TypedValue value)
public static void insert(VariableInstanceEntity variableInstance)
public static VariableInstanceEntity create(String name, TypedValue value)
public void delete()
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic void setProcessInstanceId(String processInstanceId)
public void setExecutionId(String executionId)
public void setCaseInstanceId(String caseInstanceId)
public void setCaseExecutionId(String caseExecutionId)
public String getByteArrayValueId()
public void setByteArrayValueId(String byteArrayValueId)
public byte[] getByteArrayValue()
getByteArrayValue in interface ValueFieldsprotected ByteArrayEntity getByteArrayEntity()
public void setByteArrayValue(byte[] bytes)
setByteArrayValue in interface ValueFieldsprotected void deleteByteArrayValue()
public Object getValue()
VariableInstancegetValue in interface VariableInstancepublic TypedValue getTypedValue()
VariableInstancegetTypedValue in interface VariableInstancepublic TypedValue getTypedValue(boolean deserializeValue)
getTypedValue in interface CoreVariableInstancepublic TypedValue setValue(TypedValue value)
public void clearValueFields()
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose in interface CommandContextListenerpublic void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed in interface CommandContextListenerprotected boolean isValuedImplicitlyUpdated()
public String getTypeName()
VariableInstancegetTypeName in interface VariableInstancepublic void postLoad()
postLoad in interface DbEntityLifecycleAwarepublic ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
public CaseExecutionEntity getCaseExecution()
public String getId()
getId in interface DbEntitygetId in interface VariableInstancepublic String getTextValue()
getTextValue in interface ValueFieldspublic String getProcessInstanceId()
VariableInstancegetProcessInstanceId in interface VariableInstancepublic String getExecutionId()
VariableInstancegetExecutionId in interface VariableInstancepublic String getCaseInstanceId()
VariableInstancegetCaseInstanceId in interface VariableInstancepublic String getCaseExecutionId()
VariableInstancegetCaseExecutionId in interface VariableInstancepublic Long getLongValue()
getLongValue in interface ValueFieldspublic void setLongValue(Long longValue)
setLongValue in interface ValueFieldspublic Double getDoubleValue()
getDoubleValue in interface ValueFieldspublic void setDoubleValue(Double doubleValue)
setDoubleValue in interface ValueFieldspublic void setName(String name)
public void setTextValue(String textValue)
setTextValue in interface ValueFieldspublic String getName()
VariableInstancegetName in interface CoreVariableInstancegetName in interface ValueFieldsgetName in interface VariableInstancepublic int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic void setSerializer(TypedValueSerializer<?> serializer)
public void setSerializerName(String type)
public TypedValueSerializer<?> getSerializer()
protected void ensureSerializerInitialized()
public static VariableSerializers getSerializers()
public String getTextValue2()
getTextValue2 in interface ValueFieldspublic void setTextValue2(String textValue2)
setTextValue2 in interface ValueFieldspublic String getTaskId()
VariableInstancegetTaskId in interface VariableInstancepublic void setTaskId(String taskId)
public String getActivityInstanceId()
VariableInstancegetActivityInstanceId in interface VariableInstancepublic void setActivityInstanceId(String activityInstanceId)
public String getSerializerName()
public String getErrorMessage()
VariableInstancegetErrorMessage in interface VariableInstancepublic String getVariableScopeId()
public TypedValue getCachedValue()
protected VariableScope getVariableScope()
public long getSequenceCounter()
public void setSequenceCounter(long sequenceCounter)
public void incrementSequenceCounter()
public boolean isConcurrentLocal()
public void setConcurrentLocal(boolean isConcurrentLocal)
public void onImplicitValueUpdate(TypedValue updatedValue)
Copyright © 2018. All rights reserved.