Class HistoryEvent
java.lang.Object
org.camunda.bpm.engine.impl.history.event.HistoryEvent
- All Implemented Interfaces:
Serializable,DbEntity,HistoricEntity
- Direct Known Subclasses:
HistoricBatchEntity,HistoricDecisionEvaluationEvent,HistoricDecisionInputInstanceEntity,HistoricDecisionInstanceEntity,HistoricDecisionOutputInstanceEntity,HistoricDetailEventEntity,HistoricExternalTaskLogEntity,HistoricIdentityLinkLogEventEntity,HistoricIncidentEventEntity,HistoricJobLogEvent,HistoricScopeInstanceEvent,UserOperationLogEntryEventEntity
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
that HistoryEvents can be easily persisted using the
DbEntityManager. This may not be used by all HistoryEventHandler
implementations but it does also not cause harm.
- Author:
- Daniel Meyer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.protected Stringthe id of the case definitionprotected Stringthe key of the case definitionprotected Stringthe name of the case definitionprotected Stringthe id of the case execution in which the event has happenedprotected Stringthe case instance in which the event has happenedprotected StringThe type of the activity audit event.protected Stringthe id of the execution in which the event has happenedstatic final StringDeprecated.protected StringeachHistoryEventhas a unique idstatic final Stringstatic final Stringstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.protected Stringthe id of the process definitionprotected Stringthe key of the process definitionprotected Stringthe name of the process definitionprotected Integerthe version of the process definitionprotected Stringthe process instance in which the event has happenedprotected Dateprotected Stringthe root process instance in which the event has happenedprotected longstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Returns a representation of the object, as would be stored in the database.longbooleanvoidsetCaseDefinitionId(String caseDefinitionId) voidsetCaseDefinitionKey(String caseDefinitionKey) voidsetCaseDefinitionName(String caseDefinitionName) voidsetCaseExecutionId(String caseExecutionId) voidsetCaseInstanceId(String caseInstanceId) voidsetEventType(String eventType) voidsetExecutionId(String executionId) voidvoidsetProcessDefinitionId(String processDefinitionId) voidsetProcessDefinitionKey(String processDefinitionKey) voidsetProcessDefinitionName(String processDefinitionName) voidsetProcessDefinitionVersion(Integer processDefinitionVersion) voidsetProcessInstanceId(String processInstanceId) voidsetRemovalTime(Date removalTime) voidsetRootProcessInstanceId(String rootProcessInstanceId) voidsetSequenceCounter(long sequenceCounter) toString()
-
Field Details
-
ACTIVITY_EVENT_TYPE_START
Deprecated. -
ACTIVITY_EVENT_TYPE_UPDATE
Deprecated. -
ACTIVITY_EVENT_TYPE_END
Deprecated. -
TASK_EVENT_TYPE_CREATE
Deprecated. -
TASK_EVENT_TYPE_UPDATE
Deprecated. -
TASK_EVENT_TYPE_COMPLETE
Deprecated. -
TASK_EVENT_TYPE_DELETE
Deprecated. -
VARIABLE_EVENT_TYPE_CREATE
Deprecated. -
VARIABLE_EVENT_TYPE_UPDATE
Deprecated. -
VARIABLE_EVENT_TYPE_DELETE
Deprecated. -
FORM_PROPERTY_UPDATE
Deprecated. -
INCIDENT_CREATE
Deprecated. -
INCIDENT_DELETE
Deprecated. -
INCIDENT_RESOLVE
Deprecated. -
IDENTITY_LINK_ADD
-
IDENTITY_LINK_DELETE
-
id
eachHistoryEventhas a unique id -
rootProcessInstanceId
the root process instance in which the event has happened -
processInstanceId
the process instance in which the event has happened -
executionId
the id of the execution in which the event has happened -
processDefinitionId
the id of the process definition -
processDefinitionKey
the key of the process definition -
processDefinitionName
the name of the process definition -
processDefinitionVersion
the version of the process definition -
caseInstanceId
the case instance in which the event has happened -
caseExecutionId
the id of the case execution in which the event has happened -
caseDefinitionId
the id of the case definition -
caseDefinitionKey
the key of the case definition -
caseDefinitionName
the name of the case definition -
eventType
The type of the activity audit event.- See Also:
-
sequenceCounter
protected long sequenceCounter -
removalTime
-
-
Constructor Details
-
HistoryEvent
public HistoryEvent()
-
-
Method Details
-
getProcessInstanceId
-
setProcessInstanceId
-
getRootProcessInstanceId
-
setRootProcessInstanceId
-
getExecutionId
-
setExecutionId
-
getProcessDefinitionId
-
setProcessDefinitionId
-
getProcessDefinitionKey
-
setProcessDefinitionKey
-
getProcessDefinitionName
-
setProcessDefinitionName
-
getProcessDefinitionVersion
-
setProcessDefinitionVersion
-
getCaseDefinitionName
-
setCaseDefinitionName
-
getCaseDefinitionKey
-
setCaseDefinitionKey
-
getCaseDefinitionId
-
setCaseDefinitionId
-
getCaseInstanceId
-
setCaseInstanceId
-
getCaseExecutionId
-
setCaseExecutionId
-
setId
-
getId
-
getEventType
-
setEventType
-
getSequenceCounter
public long getSequenceCounter() -
setSequenceCounter
public void setSequenceCounter(long sequenceCounter) -
getRemovalTime
-
setRemovalTime
-
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
-
isEventOfType
-
toString
-