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:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected ByteArrayField
protected String
protected String
protected String
protected String
protected Date
protected Double
protected String
protected String
protected static final EnginePersistenceLogger
protected Long
protected String
protected String
protected String
protected String
protected Date
protected int
protected String
protected String
protected String
protected String
protected String
protected String
protected TypedValueField
Fields inherited from interface org.camunda.bpm.engine.history.HistoricVariableInstance
STATE_CREATED, STATE_DELETED
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Returns the corresponding activity instance id.Deprecated.byte[]
The case definition reference.The case definition key reference.Return the corresponding case execution id.The case instance reference.The time when the variable was created.If the variable value could not be loaded, this returns the error message.Return the corresponding execution id.getId()
getName()
Returns the name of this variable instance.Returns a representation of the object, as would be stored in the database.The process definition reference.The process definition key reference.The process instance reference.The time when the historic variable instance will be removed.int
int
The root process instance reference.getState()
The current state of the variable.Return the corresponding task id.The id of the tenant this variable belongs to.Returns theTypedValue
of this variable instance.getTypedValue
(boolean deserializeValue) Returns the name of the type of this variable instancegetValue()
Returns the value of this variable instance.Returns the name of this variable instance.Returns the name of the type of this variable instancevoid
postLoad()
void
setActivityInstanceId
(String activityInstanceId) void
setByteArrayId
(String byteArrayId) void
setByteArrayValue
(byte[] bytes) void
setByteArrayValue
(ByteArrayEntity byteArrayValue) void
setCaseDefinitionId
(String caseDefinitionId) void
setCaseDefinitionKey
(String caseDefinitionKey) void
setCaseExecutionId
(String caseExecutionId) void
setCaseInstanceId
(String caseInstanceId) void
setCreateTime
(Date createTime) void
setDoubleValue
(Double doubleValue) void
setExecutionId
(String executionId) void
void
setLongValue
(Long longValue) void
void
setProcessDefinitionId
(String processDefinitionId) void
setProcessDefinitionKey
(String processDefinitionKey) void
setProcessInstanceId
(String processInstanceId) void
setRemovalTime
(Date removalTime) void
setRevision
(int revision) void
setRootProcessInstanceId
(String rootProcessInstanceId) void
setSerializerName
(String serializerName) void
void
void
setTenantId
(String tenantId) void
setTextValue
(String textValue) void
setTextValue2
(String textValue2) toString()
void
updateFromEvent
(HistoricVariableUpdateEventEntity historyEvent)
-
Field Details
-
LOG
-
id
-
processDefinitionKey
-
processDefinitionId
-
rootProcessInstanceId
-
processInstanceId
-
taskId
-
executionId
-
activityInstanceId
-
tenantId
-
caseDefinitionKey
-
caseDefinitionId
-
caseInstanceId
-
caseExecutionId
-
name
-
revision
protected int revision -
createTime
-
longValue
-
doubleValue
-
textValue
-
textValue2
-
state
-
removalTime
-
byteArrayField
-
typedValueField
-
-
Constructor Details
-
HistoricVariableInstanceEntity
public HistoricVariableInstanceEntity() -
HistoricVariableInstanceEntity
-
-
Method Details
-
updateFromEvent
-
delete
public void delete() -
getPersistentState
Description copied from interface:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
getValue
Description copied from interface:HistoricVariableInstance
Returns the value of this variable instance.- Specified by:
getValue
in interfaceHistoricVariableInstance
-
getTypedValue
Description copied from interface:HistoricVariableInstance
Returns theTypedValue
of this variable instance.- Specified by:
getTypedValue
in interfaceHistoricVariableInstance
-
getTypedValue
-
getSerializer
-
getByteArrayValueId
-
getByteArrayId
-
setByteArrayId
-
getByteArrayValue
public byte[] getByteArrayValue()- Specified by:
getByteArrayValue
in interfaceValueFields
-
setByteArrayValue
public void setByteArrayValue(byte[] bytes) - Specified by:
setByteArrayValue
in interfaceValueFields
-
postLoad
public void postLoad()- Specified by:
postLoad
in interfaceDbEntityLifecycleAware
-
getSerializerName
-
setSerializerName
-
getTypeName
Description copied from interface:HistoricVariableInstance
Returns the name of the type of this variable instance- Specified by:
getTypeName
in interfaceHistoricVariableInstance
- Returns:
- the type name of the variable
-
getVariableTypeName
Description copied from interface:HistoricVariableInstance
Returns the name of the type of this variable instance
Deprecated since 7.2: use
HistoricVariableInstance.getTypeName()
instead.- Specified by:
getVariableTypeName
in interfaceHistoricVariableInstance
-
getVariableName
Description copied from interface:HistoricVariableInstance
Returns the name of this variable instance.Deprecated since 7.2: use
HistoricVariableInstance.getName()
instead.- Specified by:
getVariableName
in interfaceHistoricVariableInstance
-
getRevision
public int getRevision()- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevision
in interfaceHasDbRevision
-
getName
Description copied from interface:HistoricVariableInstance
Returns the name of this variable instance.- Specified by:
getName
in interfaceHistoricVariableInstance
- Specified by:
getName
in interfaceNameable
-
setName
-
getLongValue
- Specified by:
getLongValue
in interfaceValueFields
-
setLongValue
- Specified by:
setLongValue
in interfaceValueFields
-
getDoubleValue
- Specified by:
getDoubleValue
in interfaceValueFields
-
setDoubleValue
- Specified by:
setDoubleValue
in interfaceValueFields
-
getTextValue
- Specified by:
getTextValue
in interfaceValueFields
-
setTextValue
- Specified by:
setTextValue
in interfaceValueFields
-
getTextValue2
- Specified by:
getTextValue2
in interfaceValueFields
-
setTextValue2
- Specified by:
setTextValue2
in interfaceValueFields
-
setByteArrayValue
-
getId
- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceHistoricVariableInstance
- Returns:
- the Id of this variable instance
-
setId
-
getProcessDefinitionKey
Description copied from interface:HistoricVariableInstance
The process definition key reference.- Specified by:
getProcessDefinitionKey
in interfaceHistoricVariableInstance
-
setProcessDefinitionKey
-
getProcessDefinitionId
Description copied from interface:HistoricVariableInstance
The process definition reference.- Specified by:
getProcessDefinitionId
in interfaceHistoricVariableInstance
-
setProcessDefinitionId
-
getProcessInstanceId
Description copied from interface:HistoricVariableInstance
The process instance reference.- Specified by:
getProcessInstanceId
in interfaceHistoricVariableInstance
-
setProcessInstanceId
-
getTaskId
Description copied from interface:HistoricVariableInstance
Return the corresponding task id.- Specified by:
getTaskId
in interfaceHistoricVariableInstance
-
setTaskId
-
getExecutionId
Description copied from interface:HistoricVariableInstance
Return the corresponding execution id.- Specified by:
getExecutionId
in interfaceHistoricVariableInstance
-
setExecutionId
-
getActivtyInstanceId
Deprecated.Description copied from interface:HistoricVariableInstance
Returns the corresponding activity instance id.- Specified by:
getActivtyInstanceId
in interfaceHistoricVariableInstance
-
getActivityInstanceId
Description copied from interface:HistoricVariableInstance
Returns the corresponding activity instance id.- Specified by:
getActivityInstanceId
in interfaceHistoricVariableInstance
-
setActivityInstanceId
-
getCaseDefinitionKey
Description copied from interface:HistoricVariableInstance
The case definition key reference.- Specified by:
getCaseDefinitionKey
in interfaceHistoricVariableInstance
-
setCaseDefinitionKey
-
getCaseDefinitionId
Description copied from interface:HistoricVariableInstance
The case definition reference.- Specified by:
getCaseDefinitionId
in interfaceHistoricVariableInstance
-
setCaseDefinitionId
-
getCaseInstanceId
Description copied from interface:HistoricVariableInstance
The case instance reference.- Specified by:
getCaseInstanceId
in interfaceHistoricVariableInstance
-
setCaseInstanceId
-
getCaseExecutionId
Description copied from interface:HistoricVariableInstance
Return the corresponding case execution id.- Specified by:
getCaseExecutionId
in interfaceHistoricVariableInstance
-
setCaseExecutionId
-
getErrorMessage
Description copied from interface:HistoricVariableInstance
If the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessage
in interfaceHistoricVariableInstance
- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
Description copied from interface:HistoricVariableInstance
The id of the tenant this variable belongs to. Can benull
if the variable belongs to no single tenant.- Specified by:
getTenantId
in interfaceHistoricVariableInstance
-
setTenantId
-
getState
Description copied from interface:HistoricVariableInstance
The current state of the variable. Can be 'CREATED' or 'DELETED'- Specified by:
getState
in interfaceHistoricVariableInstance
-
setState
-
getCreateTime
Description copied from interface:HistoricVariableInstance
The time when the variable was created.- Specified by:
getCreateTime
in interfaceHistoricVariableInstance
-
setCreateTime
-
getRootProcessInstanceId
Description copied from interface:HistoricVariableInstance
The root process instance reference.- Specified by:
getRootProcessInstanceId
in interfaceHistoricVariableInstance
-
setRootProcessInstanceId
-
getRemovalTime
Description copied from interface:HistoricVariableInstance
The time when the historic variable instance will be removed.- Specified by:
getRemovalTime
in interfaceHistoricVariableInstance
-
setRemovalTime
-
toString
-