Class HistoryEvent
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.event.HistoryEvent
-
- All Implemented Interfaces:
java.io.Serializable
,DbEntity
,HistoricEntity
- Direct Known Subclasses:
HistoricBatchEntity
,HistoricDecisionEvaluationEvent
,HistoricDecisionInputInstanceEntity
,HistoricDecisionInstanceEntity
,HistoricDecisionOutputInstanceEntity
,HistoricDetailEventEntity
,HistoricExternalTaskLogEntity
,HistoricIdentityLinkLogEventEntity
,HistoricIncidentEventEntity
,HistoricJobLogEvent
,HistoricScopeInstanceEvent
,UserOperationLogEntryEventEntity
public class HistoryEvent extends java.lang.Object implements java.io.Serializable, DbEntity, HistoricEntity
The base class for all history events.
A history event contains data about an event that has happened in a process instance. Such an event may be the start of an activity, the end of an activity, a task instance that is created or other similar events...
History events contain data in a serializable form. Some implementations may persist events directly or may serialize them as an intermediate representation for later processing (ie. in an asynchronous implementation).
This class implements
DbEntity
. This was chosen so thatHistoryEvent
s can be easily persisted using theDbEntityManager
. This may not be used by allHistoryEventHandler
implementations but it does also not cause harm.- Author:
- Daniel Meyer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVITY_EVENT_TYPE_END
Deprecated.static java.lang.String
ACTIVITY_EVENT_TYPE_START
Deprecated.static java.lang.String
ACTIVITY_EVENT_TYPE_UPDATE
Deprecated.protected java.lang.String
caseDefinitionId
the id of the case definitionprotected java.lang.String
caseDefinitionKey
the key of the case definitionprotected java.lang.String
caseDefinitionName
the name of the case definitionprotected java.lang.String
caseExecutionId
the id of the case execution in which the event has happenedprotected java.lang.String
caseInstanceId
the case instance in which the event has happenedprotected java.lang.String
eventType
The type of the activity audit event.protected java.lang.String
executionId
the id of the execution in which the event has happenedstatic java.lang.String
FORM_PROPERTY_UPDATE
Deprecated.protected java.lang.String
id
eachHistoryEvent
has a unique idstatic java.lang.String
IDENTITY_LINK_ADD
static java.lang.String
IDENTITY_LINK_DELETE
static java.lang.String
INCIDENT_CREATE
Deprecated.static java.lang.String
INCIDENT_DELETE
Deprecated.static java.lang.String
INCIDENT_RESOLVE
Deprecated.protected java.lang.String
processDefinitionId
the id of the process definitionprotected java.lang.String
processDefinitionKey
the key of the process definitionprotected java.lang.String
processDefinitionName
the name of the process definitionprotected java.lang.Integer
processDefinitionVersion
the version of the process definitionprotected java.lang.String
processInstanceId
the process instance in which the event has happenedprotected java.util.Date
removalTime
protected java.lang.String
rootProcessInstanceId
the root process instance in which the event has happenedprotected long
sequenceCounter
static java.lang.String
TASK_EVENT_TYPE_COMPLETE
Deprecated.static java.lang.String
TASK_EVENT_TYPE_CREATE
Deprecated.static java.lang.String
TASK_EVENT_TYPE_DELETE
Deprecated.static java.lang.String
TASK_EVENT_TYPE_UPDATE
Deprecated.static java.lang.String
VARIABLE_EVENT_TYPE_CREATE
Deprecated.static java.lang.String
VARIABLE_EVENT_TYPE_DELETE
Deprecated.static java.lang.String
VARIABLE_EVENT_TYPE_UPDATE
Deprecated.
-
Constructor Summary
Constructors Constructor Description HistoryEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCaseDefinitionId()
java.lang.String
getCaseDefinitionKey()
java.lang.String
getCaseDefinitionName()
java.lang.String
getCaseExecutionId()
java.lang.String
getCaseInstanceId()
java.lang.String
getEventType()
java.lang.String
getExecutionId()
java.lang.String
getId()
java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.java.lang.String
getProcessDefinitionId()
java.lang.String
getProcessDefinitionKey()
java.lang.String
getProcessDefinitionName()
java.lang.Integer
getProcessDefinitionVersion()
java.lang.String
getProcessInstanceId()
java.util.Date
getRemovalTime()
java.lang.String
getRootProcessInstanceId()
long
getSequenceCounter()
boolean
isEventOfType(HistoryEventType type)
void
setCaseDefinitionId(java.lang.String caseDefinitionId)
void
setCaseDefinitionKey(java.lang.String caseDefinitionKey)
void
setCaseDefinitionName(java.lang.String caseDefinitionName)
void
setCaseExecutionId(java.lang.String caseExecutionId)
void
setCaseInstanceId(java.lang.String caseInstanceId)
void
setEventType(java.lang.String eventType)
void
setExecutionId(java.lang.String executionId)
void
setId(java.lang.String id)
void
setProcessDefinitionId(java.lang.String processDefinitionId)
void
setProcessDefinitionKey(java.lang.String processDefinitionKey)
void
setProcessDefinitionName(java.lang.String processDefinitionName)
void
setProcessDefinitionVersion(java.lang.Integer processDefinitionVersion)
void
setProcessInstanceId(java.lang.String processInstanceId)
void
setRemovalTime(java.util.Date removalTime)
void
setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
void
setSequenceCounter(long sequenceCounter)
java.lang.String
toString()
-
-
-
Field Detail
-
ACTIVITY_EVENT_TYPE_START
@Deprecated public static final java.lang.String ACTIVITY_EVENT_TYPE_START
Deprecated.
-
ACTIVITY_EVENT_TYPE_UPDATE
@Deprecated public static final java.lang.String ACTIVITY_EVENT_TYPE_UPDATE
Deprecated.
-
ACTIVITY_EVENT_TYPE_END
@Deprecated public static final java.lang.String ACTIVITY_EVENT_TYPE_END
Deprecated.
-
TASK_EVENT_TYPE_CREATE
@Deprecated public static final java.lang.String TASK_EVENT_TYPE_CREATE
Deprecated.
-
TASK_EVENT_TYPE_UPDATE
@Deprecated public static final java.lang.String TASK_EVENT_TYPE_UPDATE
Deprecated.
-
TASK_EVENT_TYPE_COMPLETE
@Deprecated public static final java.lang.String TASK_EVENT_TYPE_COMPLETE
Deprecated.
-
TASK_EVENT_TYPE_DELETE
@Deprecated public static final java.lang.String TASK_EVENT_TYPE_DELETE
Deprecated.
-
VARIABLE_EVENT_TYPE_CREATE
@Deprecated public static final java.lang.String VARIABLE_EVENT_TYPE_CREATE
Deprecated.
-
VARIABLE_EVENT_TYPE_UPDATE
@Deprecated public static final java.lang.String VARIABLE_EVENT_TYPE_UPDATE
Deprecated.
-
VARIABLE_EVENT_TYPE_DELETE
@Deprecated public static final java.lang.String VARIABLE_EVENT_TYPE_DELETE
Deprecated.
-
FORM_PROPERTY_UPDATE
@Deprecated public static final java.lang.String FORM_PROPERTY_UPDATE
Deprecated.
-
INCIDENT_CREATE
@Deprecated public static final java.lang.String INCIDENT_CREATE
Deprecated.
-
INCIDENT_DELETE
@Deprecated public static final java.lang.String INCIDENT_DELETE
Deprecated.
-
INCIDENT_RESOLVE
@Deprecated public static final java.lang.String INCIDENT_RESOLVE
Deprecated.
-
IDENTITY_LINK_ADD
public static final java.lang.String IDENTITY_LINK_ADD
-
IDENTITY_LINK_DELETE
public static final java.lang.String IDENTITY_LINK_DELETE
-
id
protected java.lang.String id
eachHistoryEvent
has a unique id
-
rootProcessInstanceId
protected java.lang.String rootProcessInstanceId
the root process instance in which the event has happened
-
processInstanceId
protected java.lang.String processInstanceId
the process instance in which the event has happened
-
executionId
protected java.lang.String executionId
the id of the execution in which the event has happened
-
processDefinitionId
protected java.lang.String processDefinitionId
the id of the process definition
-
processDefinitionKey
protected java.lang.String processDefinitionKey
the key of the process definition
-
processDefinitionName
protected java.lang.String processDefinitionName
the name of the process definition
-
processDefinitionVersion
protected java.lang.Integer processDefinitionVersion
the version of the process definition
-
caseInstanceId
protected java.lang.String caseInstanceId
the case instance in which the event has happened
-
caseExecutionId
protected java.lang.String caseExecutionId
the id of the case execution in which the event has happened
-
caseDefinitionId
protected java.lang.String caseDefinitionId
the id of the case definition
-
caseDefinitionKey
protected java.lang.String caseDefinitionKey
the key of the case definition
-
caseDefinitionName
protected java.lang.String caseDefinitionName
the name of the case definition
-
eventType
protected java.lang.String eventType
The type of the activity audit event.- See Also:
HistoryEventType.getEventName()
-
sequenceCounter
protected long sequenceCounter
-
removalTime
protected java.util.Date removalTime
-
-
Method Detail
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
-
setProcessInstanceId
public void setProcessInstanceId(java.lang.String processInstanceId)
-
getRootProcessInstanceId
public java.lang.String getRootProcessInstanceId()
-
setRootProcessInstanceId
public void setRootProcessInstanceId(java.lang.String rootProcessInstanceId)
-
getExecutionId
public java.lang.String getExecutionId()
-
setExecutionId
public void setExecutionId(java.lang.String executionId)
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
-
setProcessDefinitionId
public void setProcessDefinitionId(java.lang.String processDefinitionId)
-
getProcessDefinitionKey
public java.lang.String getProcessDefinitionKey()
-
setProcessDefinitionKey
public void setProcessDefinitionKey(java.lang.String processDefinitionKey)
-
getProcessDefinitionName
public java.lang.String getProcessDefinitionName()
-
setProcessDefinitionName
public void setProcessDefinitionName(java.lang.String processDefinitionName)
-
getProcessDefinitionVersion
public java.lang.Integer getProcessDefinitionVersion()
-
setProcessDefinitionVersion
public void setProcessDefinitionVersion(java.lang.Integer processDefinitionVersion)
-
getCaseDefinitionName
public java.lang.String getCaseDefinitionName()
-
setCaseDefinitionName
public void setCaseDefinitionName(java.lang.String caseDefinitionName)
-
getCaseDefinitionKey
public java.lang.String getCaseDefinitionKey()
-
setCaseDefinitionKey
public void setCaseDefinitionKey(java.lang.String caseDefinitionKey)
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
-
setCaseDefinitionId
public void setCaseDefinitionId(java.lang.String caseDefinitionId)
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
-
setCaseInstanceId
public void setCaseInstanceId(java.lang.String caseInstanceId)
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
-
setCaseExecutionId
public void setCaseExecutionId(java.lang.String caseExecutionId)
-
getEventType
public java.lang.String getEventType()
-
setEventType
public void setEventType(java.lang.String eventType)
-
getSequenceCounter
public long getSequenceCounter()
-
setSequenceCounter
public void setSequenceCounter(long sequenceCounter)
-
getRemovalTime
public java.util.Date getRemovalTime()
-
setRemovalTime
public void setRemovalTime(java.util.Date removalTime)
-
getPersistentState
public java.lang.Object 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
-
isEventOfType
public boolean isEventOfType(HistoryEventType type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-