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 thatHistoryEvents can be easily persisted using theDbEntityManager. This may not be used by allHistoryEventHandlerimplementations 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.StringACTIVITY_EVENT_TYPE_ENDDeprecated.static java.lang.StringACTIVITY_EVENT_TYPE_STARTDeprecated.static java.lang.StringACTIVITY_EVENT_TYPE_UPDATEDeprecated.protected java.lang.StringcaseDefinitionIdthe id of the case definitionprotected java.lang.StringcaseDefinitionKeythe key of the case definitionprotected java.lang.StringcaseDefinitionNamethe name of the case definitionprotected java.lang.StringcaseExecutionIdthe id of the case execution in which the event has happenedprotected java.lang.StringcaseInstanceIdthe case instance in which the event has happenedprotected java.lang.StringeventTypeThe type of the activity audit event.protected java.lang.StringexecutionIdthe id of the execution in which the event has happenedstatic java.lang.StringFORM_PROPERTY_UPDATEDeprecated.protected java.lang.StringideachHistoryEventhas a unique idstatic java.lang.StringIDENTITY_LINK_ADDstatic java.lang.StringIDENTITY_LINK_DELETEstatic java.lang.StringINCIDENT_CREATEDeprecated.static java.lang.StringINCIDENT_DELETEDeprecated.static java.lang.StringINCIDENT_RESOLVEDeprecated.protected java.lang.StringprocessDefinitionIdthe id of the process definitionprotected java.lang.StringprocessDefinitionKeythe key of the process definitionprotected java.lang.StringprocessDefinitionNamethe name of the process definitionprotected java.lang.IntegerprocessDefinitionVersionthe version of the process definitionprotected java.lang.StringprocessInstanceIdthe process instance in which the event has happenedprotected java.util.DateremovalTimeprotected java.lang.StringrootProcessInstanceIdthe root process instance in which the event has happenedprotected longsequenceCounterstatic java.lang.StringTASK_EVENT_TYPE_COMPLETEDeprecated.static java.lang.StringTASK_EVENT_TYPE_CREATEDeprecated.static java.lang.StringTASK_EVENT_TYPE_DELETEDeprecated.static java.lang.StringTASK_EVENT_TYPE_UPDATEDeprecated.static java.lang.StringVARIABLE_EVENT_TYPE_CREATEDeprecated.static java.lang.StringVARIABLE_EVENT_TYPE_DELETEDeprecated.static java.lang.StringVARIABLE_EVENT_TYPE_UPDATEDeprecated.
-
Constructor Summary
Constructors Constructor Description HistoryEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCaseDefinitionId()java.lang.StringgetCaseDefinitionKey()java.lang.StringgetCaseDefinitionName()java.lang.StringgetCaseExecutionId()java.lang.StringgetCaseInstanceId()java.lang.StringgetEventType()java.lang.StringgetExecutionId()java.lang.StringgetId()java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.java.lang.StringgetProcessDefinitionId()java.lang.StringgetProcessDefinitionKey()java.lang.StringgetProcessDefinitionName()java.lang.IntegergetProcessDefinitionVersion()java.lang.StringgetProcessInstanceId()java.util.DategetRemovalTime()java.lang.StringgetRootProcessInstanceId()longgetSequenceCounter()booleanisEventOfType(HistoryEventType type)voidsetCaseDefinitionId(java.lang.String caseDefinitionId)voidsetCaseDefinitionKey(java.lang.String caseDefinitionKey)voidsetCaseDefinitionName(java.lang.String caseDefinitionName)voidsetCaseExecutionId(java.lang.String caseExecutionId)voidsetCaseInstanceId(java.lang.String caseInstanceId)voidsetEventType(java.lang.String eventType)voidsetExecutionId(java.lang.String executionId)voidsetId(java.lang.String id)voidsetProcessDefinitionId(java.lang.String processDefinitionId)voidsetProcessDefinitionKey(java.lang.String processDefinitionKey)voidsetProcessDefinitionName(java.lang.String processDefinitionName)voidsetProcessDefinitionVersion(java.lang.Integer processDefinitionVersion)voidsetProcessInstanceId(java.lang.String processInstanceId)voidsetRemovalTime(java.util.Date removalTime)voidsetRootProcessInstanceId(java.lang.String rootProcessInstanceId)voidsetSequenceCounter(long sequenceCounter)java.lang.StringtoString()
-
-
-
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
eachHistoryEventhas 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: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
public boolean isEventOfType(HistoryEventType type)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-