Class HistoricVariableInstanceEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.entity.HistoricVariableInstanceEntity
-
- All Implemented Interfaces:
Serializable,HistoricVariableInstance,DbEntity,DbEntityLifecycleAware,HasDbRevision,HistoricEntity,Nameable,ValueFields
public class HistoricVariableInstanceEntity extends Object implements ValueFields, HistoricVariableInstance, DbEntity, HasDbRevision, HistoricEntity, Serializable, DbEntityLifecycleAware
- Author:
- Christian Lipphardt (camunda)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringactivityInstanceIdprotected ByteArrayFieldbyteArrayFieldprotected StringcaseDefinitionIdprotected StringcaseDefinitionKeyprotected StringcaseExecutionIdprotected StringcaseInstanceIdprotected DatecreateTimeprotected DoubledoubleValueprotected StringexecutionIdprotected Stringidprotected static EnginePersistenceLoggerLOGprotected LonglongValueprotected Stringnameprotected StringprocessDefinitionIdprotected StringprocessDefinitionKeyprotected StringprocessInstanceIdprotected DateremovalTimeprotected intrevisionprotected StringrootProcessInstanceIdprotected Stringstateprotected StringtaskIdprotected StringtenantIdprotected StringtextValueprotected StringtextValue2protected TypedValueFieldtypedValueField-
Fields inherited from interface org.camunda.bpm.engine.history.HistoricVariableInstance
STATE_CREATED, STATE_DELETED
-
-
Constructor Summary
Constructors Constructor Description HistoricVariableInstanceEntity()HistoricVariableInstanceEntity(HistoricVariableUpdateEventEntity historyEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddelete()StringgetActivityInstanceId()Returns the corresponding activity instance id.StringgetActivtyInstanceId()Deprecated.StringgetByteArrayId()byte[]getByteArrayValue()StringgetByteArrayValueId()StringgetCaseDefinitionId()The case definition reference.StringgetCaseDefinitionKey()The case definition key reference.StringgetCaseExecutionId()Return the corresponding case execution id.StringgetCaseInstanceId()The case instance reference.DategetCreateTime()The time when the variable was created.DoublegetDoubleValue()StringgetErrorMessage()If the variable value could not be loaded, this returns the error message.StringgetExecutionId()Return the corresponding execution id.StringgetId()LonggetLongValue()StringgetName()Returns the name of this variable instance.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.StringgetProcessDefinitionId()The process definition reference.StringgetProcessDefinitionKey()The process definition key reference.StringgetProcessInstanceId()The process instance reference.DategetRemovalTime()The time when the historic variable instance will be removed.intgetRevision()intgetRevisionNext()StringgetRootProcessInstanceId()The root process instance reference.TypedValueSerializer<?>getSerializer()StringgetSerializerName()StringgetState()The current state of the variable.StringgetTaskId()Return the corresponding task id.StringgetTenantId()The id of the tenant this variable belongs to.StringgetTextValue()StringgetTextValue2()TypedValuegetTypedValue()Returns theTypedValueof this variable instance.TypedValuegetTypedValue(boolean deserializeValue)StringgetTypeName()Returns the name of the type of this variable instanceObjectgetValue()Returns the value of this variable instance.StringgetVariableName()Returns the name of this variable instance.StringgetVariableTypeName()Returns the name of the type of this variable instancevoidpostLoad()voidsetActivityInstanceId(String activityInstanceId)voidsetByteArrayId(String byteArrayId)voidsetByteArrayValue(byte[] bytes)voidsetByteArrayValue(ByteArrayEntity byteArrayValue)voidsetCaseDefinitionId(String caseDefinitionId)voidsetCaseDefinitionKey(String caseDefinitionKey)voidsetCaseExecutionId(String caseExecutionId)voidsetCaseInstanceId(String caseInstanceId)voidsetCreateTime(Date createTime)voidsetDoubleValue(Double doubleValue)voidsetExecutionId(String executionId)voidsetId(String id)voidsetLongValue(Long longValue)voidsetName(String name)voidsetProcessDefinitionId(String processDefinitionId)voidsetProcessDefinitionKey(String processDefinitionKey)voidsetProcessInstanceId(String processInstanceId)voidsetRemovalTime(Date removalTime)voidsetRevision(int revision)voidsetRootProcessInstanceId(String rootProcessInstanceId)voidsetSerializerName(String serializerName)voidsetState(String state)voidsetTaskId(String taskId)voidsetTenantId(String tenantId)voidsetTextValue(String textValue)voidsetTextValue2(String textValue2)StringtoString()voidupdateFromEvent(HistoricVariableUpdateEventEntity historyEvent)
-
-
-
Field Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
id
protected String id
-
processDefinitionKey
protected String processDefinitionKey
-
processDefinitionId
protected String processDefinitionId
-
rootProcessInstanceId
protected String rootProcessInstanceId
-
processInstanceId
protected String processInstanceId
-
taskId
protected String taskId
-
executionId
protected String executionId
-
activityInstanceId
protected String activityInstanceId
-
tenantId
protected String tenantId
-
caseDefinitionKey
protected String caseDefinitionKey
-
caseDefinitionId
protected String caseDefinitionId
-
caseInstanceId
protected String caseInstanceId
-
caseExecutionId
protected String caseExecutionId
-
name
protected String name
-
revision
protected int revision
-
createTime
protected Date createTime
-
longValue
protected Long longValue
-
doubleValue
protected Double doubleValue
-
textValue
protected String textValue
-
textValue2
protected String textValue2
-
state
protected String state
-
removalTime
protected Date removalTime
-
byteArrayField
protected ByteArrayField byteArrayField
-
typedValueField
protected TypedValueField typedValueField
-
-
Constructor Detail
-
HistoricVariableInstanceEntity
public HistoricVariableInstanceEntity()
-
HistoricVariableInstanceEntity
public HistoricVariableInstanceEntity(HistoricVariableUpdateEventEntity historyEvent)
-
-
Method Detail
-
updateFromEvent
public void updateFromEvent(HistoricVariableUpdateEventEntity historyEvent)
-
delete
public void delete()
-
getPersistentState
public Object getPersistentState()
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
getValue
public Object getValue()
Description copied from interface:HistoricVariableInstanceReturns the value of this variable instance.- Specified by:
getValuein interfaceHistoricVariableInstance
-
getTypedValue
public TypedValue getTypedValue()
Description copied from interface:HistoricVariableInstanceReturns theTypedValueof this variable instance.- Specified by:
getTypedValuein interfaceHistoricVariableInstance
-
getTypedValue
public TypedValue getTypedValue(boolean deserializeValue)
-
getSerializer
public TypedValueSerializer<?> getSerializer()
-
getByteArrayValueId
public String getByteArrayValueId()
-
getByteArrayId
public String getByteArrayId()
-
setByteArrayId
public void setByteArrayId(String byteArrayId)
-
getByteArrayValue
public byte[] getByteArrayValue()
- Specified by:
getByteArrayValuein interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(byte[] bytes)
- Specified by:
setByteArrayValuein interfaceValueFields
-
postLoad
public void postLoad()
- Specified by:
postLoadin interfaceDbEntityLifecycleAware
-
getSerializerName
public String getSerializerName()
-
setSerializerName
public void setSerializerName(String serializerName)
-
getTypeName
public String getTypeName()
Description copied from interface:HistoricVariableInstanceReturns the name of the type of this variable instance- Specified by:
getTypeNamein interfaceHistoricVariableInstance- Returns:
- the type name of the variable
-
getVariableTypeName
public String getVariableTypeName()
Description copied from interface:HistoricVariableInstanceReturns the name of the type of this variable instance
Deprecated since 7.2: use
HistoricVariableInstance.getTypeName()instead.- Specified by:
getVariableTypeNamein interfaceHistoricVariableInstance
-
getVariableName
public String getVariableName()
Description copied from interface:HistoricVariableInstanceReturns the name of this variable instance.Deprecated since 7.2: use
HistoricVariableInstance.getName()instead.- Specified by:
getVariableNamein interfaceHistoricVariableInstance
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getName
public String getName()
Description copied from interface:HistoricVariableInstanceReturns the name of this variable instance.- Specified by:
getNamein interfaceHistoricVariableInstance- Specified by:
getNamein interfaceNameable
-
setName
public void setName(String name)
-
getLongValue
public Long getLongValue()
- Specified by:
getLongValuein interfaceValueFields
-
setLongValue
public void setLongValue(Long longValue)
- Specified by:
setLongValuein interfaceValueFields
-
getDoubleValue
public Double getDoubleValue()
- Specified by:
getDoubleValuein interfaceValueFields
-
setDoubleValue
public void setDoubleValue(Double doubleValue)
- Specified by:
setDoubleValuein interfaceValueFields
-
getTextValue
public String getTextValue()
- Specified by:
getTextValuein interfaceValueFields
-
setTextValue
public void setTextValue(String textValue)
- Specified by:
setTextValuein interfaceValueFields
-
getTextValue2
public String getTextValue2()
- Specified by:
getTextValue2in interfaceValueFields
-
setTextValue2
public void setTextValue2(String textValue2)
- Specified by:
setTextValue2in interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(ByteArrayEntity byteArrayValue)
-
getId
public String getId()
- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceHistoricVariableInstance- Returns:
- the Id of this variable instance
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
Description copied from interface:HistoricVariableInstanceThe process definition key reference.- Specified by:
getProcessDefinitionKeyin interfaceHistoricVariableInstance
-
setProcessDefinitionKey
public void setProcessDefinitionKey(String processDefinitionKey)
-
getProcessDefinitionId
public String getProcessDefinitionId()
Description copied from interface:HistoricVariableInstanceThe process definition reference.- Specified by:
getProcessDefinitionIdin interfaceHistoricVariableInstance
-
setProcessDefinitionId
public void setProcessDefinitionId(String processDefinitionId)
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:HistoricVariableInstanceThe process instance reference.- Specified by:
getProcessInstanceIdin interfaceHistoricVariableInstance
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
-
getTaskId
public String getTaskId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding task id.- Specified by:
getTaskIdin interfaceHistoricVariableInstance
-
setTaskId
public void setTaskId(String taskId)
-
getExecutionId
public String getExecutionId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding execution id.- Specified by:
getExecutionIdin interfaceHistoricVariableInstance
-
setExecutionId
public void setExecutionId(String executionId)
-
getActivtyInstanceId
@Deprecated public String getActivtyInstanceId()
Deprecated.Description copied from interface:HistoricVariableInstanceReturns the corresponding activity instance id.- Specified by:
getActivtyInstanceIdin interfaceHistoricVariableInstance
-
getActivityInstanceId
public String getActivityInstanceId()
Description copied from interface:HistoricVariableInstanceReturns the corresponding activity instance id.- Specified by:
getActivityInstanceIdin interfaceHistoricVariableInstance
-
setActivityInstanceId
public void setActivityInstanceId(String activityInstanceId)
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
Description copied from interface:HistoricVariableInstanceThe case definition key reference.- Specified by:
getCaseDefinitionKeyin interfaceHistoricVariableInstance
-
setCaseDefinitionKey
public void setCaseDefinitionKey(String caseDefinitionKey)
-
getCaseDefinitionId
public String getCaseDefinitionId()
Description copied from interface:HistoricVariableInstanceThe case definition reference.- Specified by:
getCaseDefinitionIdin interfaceHistoricVariableInstance
-
setCaseDefinitionId
public void setCaseDefinitionId(String caseDefinitionId)
-
getCaseInstanceId
public String getCaseInstanceId()
Description copied from interface:HistoricVariableInstanceThe case instance reference.- Specified by:
getCaseInstanceIdin interfaceHistoricVariableInstance
-
setCaseInstanceId
public void setCaseInstanceId(String caseInstanceId)
-
getCaseExecutionId
public String getCaseExecutionId()
Description copied from interface:HistoricVariableInstanceReturn the corresponding case execution id.- Specified by:
getCaseExecutionIdin interfaceHistoricVariableInstance
-
setCaseExecutionId
public void setCaseExecutionId(String caseExecutionId)
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:HistoricVariableInstanceIf the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessagein interfaceHistoricVariableInstance- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
public String getTenantId()
Description copied from interface:HistoricVariableInstanceThe id of the tenant this variable belongs to. Can benullif the variable belongs to no single tenant.- Specified by:
getTenantIdin interfaceHistoricVariableInstance
-
setTenantId
public void setTenantId(String tenantId)
-
getState
public String getState()
Description copied from interface:HistoricVariableInstanceThe current state of the variable. Can be 'CREATED' or 'DELETED'- Specified by:
getStatein interfaceHistoricVariableInstance
-
setState
public void setState(String state)
-
getCreateTime
public Date getCreateTime()
Description copied from interface:HistoricVariableInstanceThe time when the variable was created.- Specified by:
getCreateTimein interfaceHistoricVariableInstance
-
setCreateTime
public void setCreateTime(Date createTime)
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
Description copied from interface:HistoricVariableInstanceThe root process instance reference.- Specified by:
getRootProcessInstanceIdin interfaceHistoricVariableInstance
-
setRootProcessInstanceId
public void setRootProcessInstanceId(String rootProcessInstanceId)
-
getRemovalTime
public Date getRemovalTime()
Description copied from interface:HistoricVariableInstanceThe time when the historic variable instance will be removed.- Specified by:
getRemovalTimein interfaceHistoricVariableInstance
-
setRemovalTime
public void setRemovalTime(Date removalTime)
-
-