public class HistoryEvent extends Object implements Serializable, DbEntity
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.
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVITY_EVENT_TYPE_END
Deprecated.
|
static String |
ACTIVITY_EVENT_TYPE_START
Deprecated.
|
static String |
ACTIVITY_EVENT_TYPE_UPDATE
Deprecated.
|
protected String |
caseDefinitionId
the id of the case definition
|
protected String |
caseDefinitionKey
the key of the case definition
|
protected String |
caseDefinitionName
the name of the case definition
|
protected String |
caseExecutionId
the id of the case execution in which the event has happened
|
protected String |
caseInstanceId
the case instance in which the event has happened
|
protected String |
eventType
The type of the activity audit event.
|
protected String |
executionId
the id of the execution in which the event has happened
|
static String |
FORM_PROPERTY_UPDATE
Deprecated.
|
protected String |
id
each
HistoryEvent has a unique id |
static String |
IDENTITY_LINK_ADD |
static String |
IDENTITY_LINK_DELETE |
static String |
INCIDENT_CREATE
Deprecated.
|
static String |
INCIDENT_DELETE
Deprecated.
|
static String |
INCIDENT_RESOLVE
Deprecated.
|
protected String |
processDefinitionId
the id of the process definition
|
protected String |
processDefinitionKey
the key of the process definition
|
protected String |
processDefinitionName
the name of the process definition
|
protected Integer |
processDefinitionVersion
the version of the process definition
|
protected String |
processInstanceId
the process instance in which the event has happened
|
protected long |
sequenceCounter |
static String |
TASK_EVENT_TYPE_COMPLETE
Deprecated.
|
static String |
TASK_EVENT_TYPE_CREATE
Deprecated.
|
static String |
TASK_EVENT_TYPE_DELETE
Deprecated.
|
static String |
TASK_EVENT_TYPE_UPDATE
Deprecated.
|
static String |
VARIABLE_EVENT_TYPE_CREATE
Deprecated.
|
static String |
VARIABLE_EVENT_TYPE_DELETE
Deprecated.
|
static String |
VARIABLE_EVENT_TYPE_UPDATE
Deprecated.
|
Constructor and Description |
---|
HistoryEvent() |
@Deprecated public static final String ACTIVITY_EVENT_TYPE_START
@Deprecated public static final String ACTIVITY_EVENT_TYPE_UPDATE
@Deprecated public static final String ACTIVITY_EVENT_TYPE_END
@Deprecated public static final String TASK_EVENT_TYPE_CREATE
@Deprecated public static final String TASK_EVENT_TYPE_UPDATE
@Deprecated public static final String TASK_EVENT_TYPE_COMPLETE
@Deprecated public static final String TASK_EVENT_TYPE_DELETE
@Deprecated public static final String VARIABLE_EVENT_TYPE_CREATE
@Deprecated public static final String VARIABLE_EVENT_TYPE_UPDATE
@Deprecated public static final String VARIABLE_EVENT_TYPE_DELETE
@Deprecated public static final String FORM_PROPERTY_UPDATE
@Deprecated public static final String INCIDENT_CREATE
@Deprecated public static final String INCIDENT_DELETE
@Deprecated public static final String INCIDENT_RESOLVE
public static final String IDENTITY_LINK_ADD
public static final String IDENTITY_LINK_DELETE
protected String id
HistoryEvent
has a unique idprotected String processInstanceId
protected String executionId
protected String processDefinitionId
protected String processDefinitionKey
protected String processDefinitionName
protected Integer processDefinitionVersion
protected String caseInstanceId
protected String caseExecutionId
protected String caseDefinitionId
protected String caseDefinitionKey
protected String caseDefinitionName
protected String eventType
HistoryEventType.getEventName()
protected long sequenceCounter
public String getProcessInstanceId()
public void setProcessInstanceId(String processInstanceId)
public String getExecutionId()
public void setExecutionId(String executionId)
public String getProcessDefinitionId()
public void setProcessDefinitionId(String processDefinitionId)
public String getProcessDefinitionKey()
public void setProcessDefinitionKey(String processDefinitionKey)
public String getProcessDefinitionName()
public void setProcessDefinitionName(String processDefinitionName)
public Integer getProcessDefinitionVersion()
public void setProcessDefinitionVersion(Integer processDefinitionVersion)
public String getCaseDefinitionName()
public void setCaseDefinitionName(String caseDefinitionName)
public String getCaseDefinitionKey()
public void setCaseDefinitionKey(String caseDefinitionKey)
public String getCaseDefinitionId()
public void setCaseDefinitionId(String caseDefinitionId)
public String getCaseInstanceId()
public void setCaseInstanceId(String caseInstanceId)
public String getCaseExecutionId()
public void setCaseExecutionId(String caseExecutionId)
public String getEventType()
public void setEventType(String eventType)
public long getSequenceCounter()
public void setSequenceCounter(long sequenceCounter)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public boolean isEventOfType(HistoryEventType type)
Copyright © 2019. All rights reserved.