|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity
public class VariableInstanceEntity
| Field Summary | |
|---|---|
protected String |
activityInstanceId
|
protected ByteArrayField |
byteArrayField
|
protected String |
caseExecutionId
|
protected String |
caseInstanceId
|
protected String |
configuration
|
protected Double |
doubleValue
|
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 |
textValue
|
protected String |
textValue2
|
protected TypedValueField |
typedValueField
|
| Constructor Summary | |
|---|---|
VariableInstanceEntity()
|
|
| Method Summary | |
|---|---|
void |
clearValueFields()
|
static VariableInstanceEntity |
create(String name,
org.camunda.bpm.engine.variable.value.TypedValue value)
|
static VariableInstanceEntity |
createAndInsert(String name,
org.camunda.bpm.engine.variable.value.TypedValue value)
|
void |
delete()
|
protected void |
deleteByteArrayValue()
|
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 |
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 |
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)
|
void |
setTransient(boolean isTransient)
|
org.camunda.bpm.engine.variable.value.TypedValue |
setValue(org.camunda.bpm.engine.variable.value.TypedValue value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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 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
| Constructor Detail |
|---|
public VariableInstanceEntity()
| Method Detail |
|---|
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)
public void delete()
public Object getPersistentState()
DbEntity
getPersistentState 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 ValueFieldspublic void setByteArrayValue(byte[] bytes)
setByteArrayValue in interface ValueFieldsprotected void deleteByteArrayValue()
public Object getValue()
VariableInstance
getValue in interface VariableInstancepublic org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
VariableInstance
getTypedValue in interface VariableInstancepublic org.camunda.bpm.engine.variable.value.TypedValue getTypedValue(boolean deserializeValue)
getTypedValue in interface CoreVariableInstancepublic org.camunda.bpm.engine.variable.value.TypedValue setValue(org.camunda.bpm.engine.variable.value.TypedValue value)
public void clearValueFields()
public String getTypeName()
VariableInstance
getTypeName 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 void setId(String id)
setId in interface DbEntitypublic String getTextValue()
getTextValue in interface ValueFieldspublic String getProcessInstanceId()
VariableInstance
getProcessInstanceId in interface VariableInstancepublic String getExecutionId()
VariableInstance
getExecutionId in interface VariableInstancepublic String getCaseInstanceId()
VariableInstance
getCaseInstanceId in interface VariableInstancepublic String getCaseExecutionId()
VariableInstance
getCaseExecutionId 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()
VariableInstance
getName 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()
public String getTextValue2()
getTextValue2 in interface ValueFieldspublic void setTextValue2(String textValue2)
setTextValue2 in interface ValueFieldspublic String getTaskId()
VariableInstance
getTaskId in interface VariableInstancepublic void setTaskId(String taskId)
public String getActivityInstanceId()
VariableInstance
getActivityInstanceId in interface VariableInstancepublic void setActivityInstanceId(String activityInstanceId)
public String getSerializerName()
public String getErrorMessage()
VariableInstance
getErrorMessage in interface VariableInstancepublic 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 TypedValueUpdateListenerprotected ProcessApplicationReference getContextProcessApplication()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||