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 HistoryEvent
s 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
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.protected String
the id of the case definitionprotected String
the key of the case definitionprotected String
the name of the case definitionprotected String
the id of the case execution in which the event has happenedprotected String
the case instance in which the event has happenedprotected String
The type of the activity audit event.protected String
the id of the execution in which the event has happenedstatic final String
Deprecated.protected String
eachHistoryEvent
has a unique idstatic final String
static final String
static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.protected String
the id of the process definitionprotected String
the key of the process definitionprotected String
the name of the process definitionprotected Integer
the version of the process definitionprotected String
the process instance in which the event has happenedprotected Date
protected String
the root process instance in which the event has happenedprotected long
static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns a representation of the object, as would be stored in the database.long
boolean
void
setCaseDefinitionId
(String caseDefinitionId) void
setCaseDefinitionKey
(String caseDefinitionKey) void
setCaseDefinitionName
(String caseDefinitionName) void
setCaseExecutionId
(String caseExecutionId) void
setCaseInstanceId
(String caseInstanceId) void
setEventType
(String eventType) void
setExecutionId
(String executionId) void
void
setProcessDefinitionId
(String processDefinitionId) void
setProcessDefinitionKey
(String processDefinitionKey) void
setProcessDefinitionName
(String processDefinitionName) void
setProcessDefinitionVersion
(Integer processDefinitionVersion) void
setProcessInstanceId
(String processInstanceId) void
setRemovalTime
(Date removalTime) void
setRootProcessInstanceId
(String rootProcessInstanceId) void
setSequenceCounter
(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
eachHistoryEvent
has 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: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
-
toString
-