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()
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 String getByteArrayValueId()
public void setByteArrayValueId(String byteArrayValueId)
public byte[] getByteArrayValue()
getByteArrayValue
in interface ValueFields
protected ByteArrayEntity getByteArrayEntity()
public void setByteArrayValue(byte[] bytes)
setByteArrayValue
in interface ValueFields
protected void deleteByteArrayValue()
public Object getValue()
VariableInstance
getValue
in interface VariableInstance
public TypedValue getTypedValue()
VariableInstance
getTypedValue
in interface VariableInstance
public TypedValue getTypedValue(boolean deserializeValue)
getTypedValue
in interface CoreVariableInstance
public TypedValue setValue(TypedValue value)
public void clearValueFields()
public void onCommandContextClose(CommandContext commandContext)
onCommandContextClose
in interface CommandContextListener
public void onCommandFailed(CommandContext commandContext, Throwable t)
onCommandFailed
in interface CommandContextListener
protected boolean isValuedImplicitlyUpdated()
public String getTypeName()
VariableInstance
getTypeName
in interface VariableInstance
public void postLoad()
postLoad
in interface DbEntityLifecycleAware
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 ValueFields
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()
protected void ensureSerializerInitialized()
public static VariableSerializers getSerializers()
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 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()
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.