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
public class HistoryEvent extends Object implements 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 StringACTIVITY_EVENT_TYPE_ENDDeprecated.static StringACTIVITY_EVENT_TYPE_STARTDeprecated.static StringACTIVITY_EVENT_TYPE_UPDATEDeprecated.protected StringcaseDefinitionIdthe id of the case definitionprotected StringcaseDefinitionKeythe key of the case definitionprotected StringcaseDefinitionNamethe name of the case definitionprotected StringcaseExecutionIdthe id of the case execution in which the event has happenedprotected StringcaseInstanceIdthe case instance in which the event has happenedprotected StringeventTypeThe type of the activity audit event.protected StringexecutionIdthe id of the execution in which the event has happenedstatic StringFORM_PROPERTY_UPDATEDeprecated.protected StringideachHistoryEventhas a unique idstatic StringIDENTITY_LINK_ADDstatic StringIDENTITY_LINK_DELETEstatic StringINCIDENT_CREATEDeprecated.static StringINCIDENT_DELETEDeprecated.static StringINCIDENT_RESOLVEDeprecated.protected StringprocessDefinitionIdthe id of the process definitionprotected StringprocessDefinitionKeythe key of the process definitionprotected StringprocessDefinitionNamethe name of the process definitionprotected IntegerprocessDefinitionVersionthe version of the process definitionprotected StringprocessInstanceIdthe process instance in which the event has happenedprotected DateremovalTimeprotected StringrootProcessInstanceIdthe root process instance in which the event has happenedprotected longsequenceCounterstatic StringTASK_EVENT_TYPE_COMPLETEDeprecated.static StringTASK_EVENT_TYPE_CREATEDeprecated.static StringTASK_EVENT_TYPE_DELETEDeprecated.static StringTASK_EVENT_TYPE_UPDATEDeprecated.static StringVARIABLE_EVENT_TYPE_CREATEDeprecated.static StringVARIABLE_EVENT_TYPE_DELETEDeprecated.static StringVARIABLE_EVENT_TYPE_UPDATEDeprecated.
-
Constructor Summary
Constructors Constructor Description HistoryEvent()
-
Method Summary
-
-
-
Field Detail
-
ACTIVITY_EVENT_TYPE_START
@Deprecated public static final String ACTIVITY_EVENT_TYPE_START
Deprecated.
-
ACTIVITY_EVENT_TYPE_UPDATE
@Deprecated public static final String ACTIVITY_EVENT_TYPE_UPDATE
Deprecated.
-
ACTIVITY_EVENT_TYPE_END
@Deprecated public static final String ACTIVITY_EVENT_TYPE_END
Deprecated.
-
TASK_EVENT_TYPE_CREATE
@Deprecated public static final String TASK_EVENT_TYPE_CREATE
Deprecated.
-
TASK_EVENT_TYPE_UPDATE
@Deprecated public static final String TASK_EVENT_TYPE_UPDATE
Deprecated.
-
TASK_EVENT_TYPE_COMPLETE
@Deprecated public static final String TASK_EVENT_TYPE_COMPLETE
Deprecated.
-
TASK_EVENT_TYPE_DELETE
@Deprecated public static final String TASK_EVENT_TYPE_DELETE
Deprecated.
-
VARIABLE_EVENT_TYPE_CREATE
@Deprecated public static final String VARIABLE_EVENT_TYPE_CREATE
Deprecated.
-
VARIABLE_EVENT_TYPE_UPDATE
@Deprecated public static final String VARIABLE_EVENT_TYPE_UPDATE
Deprecated.
-
VARIABLE_EVENT_TYPE_DELETE
@Deprecated public static final String VARIABLE_EVENT_TYPE_DELETE
Deprecated.
-
FORM_PROPERTY_UPDATE
@Deprecated public static final String FORM_PROPERTY_UPDATE
Deprecated.
-
INCIDENT_CREATE
@Deprecated public static final String INCIDENT_CREATE
Deprecated.
-
INCIDENT_DELETE
@Deprecated public static final String INCIDENT_DELETE
Deprecated.
-
INCIDENT_RESOLVE
@Deprecated public static final String INCIDENT_RESOLVE
Deprecated.
-
IDENTITY_LINK_ADD
public static final String IDENTITY_LINK_ADD
-
IDENTITY_LINK_DELETE
public static final String IDENTITY_LINK_DELETE
-
id
protected String id
eachHistoryEventhas a unique id
-
rootProcessInstanceId
protected String rootProcessInstanceId
the root process instance in which the event has happened
-
processInstanceId
protected String processInstanceId
the process instance in which the event has happened
-
executionId
protected String executionId
the id of the execution in which the event has happened
-
processDefinitionId
protected String processDefinitionId
the id of the process definition
-
processDefinitionKey
protected String processDefinitionKey
the key of the process definition
-
processDefinitionName
protected String processDefinitionName
the name of the process definition
-
processDefinitionVersion
protected Integer processDefinitionVersion
the version of the process definition
-
caseInstanceId
protected String caseInstanceId
the case instance in which the event has happened
-
caseExecutionId
protected String caseExecutionId
the id of the case execution in which the event has happened
-
caseDefinitionId
protected String caseDefinitionId
the id of the case definition
-
caseDefinitionKey
protected String caseDefinitionKey
the key of the case definition
-
caseDefinitionName
protected String caseDefinitionName
the name of the case definition
-
eventType
protected String eventType
The type of the activity audit event.- See Also:
HistoryEventType.getEventName()
-
sequenceCounter
protected long sequenceCounter
-
removalTime
protected Date removalTime
-
-
Method Detail
-
getProcessInstanceId
public String getProcessInstanceId()
-
setProcessInstanceId
public void setProcessInstanceId(String processInstanceId)
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
-
setRootProcessInstanceId
public void setRootProcessInstanceId(String rootProcessInstanceId)
-
getExecutionId
public String getExecutionId()
-
setExecutionId
public void setExecutionId(String executionId)
-
getProcessDefinitionId
public String getProcessDefinitionId()
-
setProcessDefinitionId
public void setProcessDefinitionId(String processDefinitionId)
-
getProcessDefinitionKey
public String getProcessDefinitionKey()
-
setProcessDefinitionKey
public void setProcessDefinitionKey(String processDefinitionKey)
-
getProcessDefinitionName
public String getProcessDefinitionName()
-
setProcessDefinitionName
public void setProcessDefinitionName(String processDefinitionName)
-
getProcessDefinitionVersion
public Integer getProcessDefinitionVersion()
-
setProcessDefinitionVersion
public void setProcessDefinitionVersion(Integer processDefinitionVersion)
-
getCaseDefinitionName
public String getCaseDefinitionName()
-
setCaseDefinitionName
public void setCaseDefinitionName(String caseDefinitionName)
-
getCaseDefinitionKey
public String getCaseDefinitionKey()
-
setCaseDefinitionKey
public void setCaseDefinitionKey(String caseDefinitionKey)
-
getCaseDefinitionId
public String getCaseDefinitionId()
-
setCaseDefinitionId
public void setCaseDefinitionId(String caseDefinitionId)
-
getCaseInstanceId
public String getCaseInstanceId()
-
setCaseInstanceId
public void setCaseInstanceId(String caseInstanceId)
-
getCaseExecutionId
public String getCaseExecutionId()
-
setCaseExecutionId
public void setCaseExecutionId(String caseExecutionId)
-
getEventType
public String getEventType()
-
setEventType
public void setEventType(String eventType)
-
getSequenceCounter
public long getSequenceCounter()
-
setSequenceCounter
public void setSequenceCounter(long sequenceCounter)
-
getRemovalTime
public Date getRemovalTime()
-
setRemovalTime
public void setRemovalTime(Date removalTime)
-
getPersistentState
public 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)
-
-