public class HistoryEvent extends Object implements Serializable, PersistentObject
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 PersistentObject
. This was chosen so
that HistoryEvent
s can be easily persisted using the
DbSqlSession
. 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
fired when an activity instance is ended.
|
static String |
ACTIVITY_EVENT_TYPE_START
fired when an activity instance is started.
|
static String |
ACTIVITY_EVENT_TYPE_UPDATE
fired when an activity instance is updated.
|
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
fired when a form property is updated
|
protected String |
id
each
HistoryEvent has a unique id |
protected String |
processDefinitionId
the id of the process definition
|
protected String |
processInstanceId
the process instance in which the event has happened
|
static String |
TASK_EVENT_TYPE_COMPLETE
fired when a task instance is completed.
|
static String |
TASK_EVENT_TYPE_CREATE
fired when a task instance is created
|
static String |
TASK_EVENT_TYPE_DELETE
fired when a task instance is deleted.
|
static String |
TASK_EVENT_TYPE_UPDATE
fired when a task instance is updated.
|
static String |
VARIABLE_EVENT_TYPE_CREATE
fired when a variable instance is created
|
static String |
VARIABLE_EVENT_TYPE_DELETE
fired when a variable instance is deleted
|
static String |
VARIABLE_EVENT_TYPE_UPDATE
fired when a variable instance is updated
|
Constructor and Description |
---|
HistoryEvent() |
Modifier and Type | Method and Description |
---|---|
String |
getEventType() |
String |
getExecutionId() |
String |
getId() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessDefinitionId() |
String |
getProcessInstanceId() |
void |
setEventType(String eventType) |
void |
setExecutionId(String executionId) |
void |
setId(String id) |
void |
setProcessDefinitionId(String processDefinitionId) |
void |
setProcessInstanceId(String processInstanceId) |
String |
toString() |
public static final String ACTIVITY_EVENT_TYPE_START
public static final String ACTIVITY_EVENT_TYPE_UPDATE
public static final String ACTIVITY_EVENT_TYPE_END
public static final String TASK_EVENT_TYPE_CREATE
public static final String TASK_EVENT_TYPE_UPDATE
public static final String TASK_EVENT_TYPE_COMPLETE
public static final String TASK_EVENT_TYPE_DELETE
public static final String VARIABLE_EVENT_TYPE_CREATE
public static final String VARIABLE_EVENT_TYPE_UPDATE
public static final String VARIABLE_EVENT_TYPE_DELETE
public static final String FORM_PROPERTY_UPDATE
protected String id
HistoryEvent
has a unique idprotected String processInstanceId
protected String executionId
protected String processDefinitionId
protected String eventType
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 void setId(String id)
setId
in interface PersistentObject
public String getId()
getId
in interface PersistentObject
public String getEventType()
public void setEventType(String eventType)
public Object getPersistentState()
PersistentObject
getPersistentState
in interface PersistentObject
Copyright © 2015. All rights reserved.