Interface HistoryEventProducer
- All Known Implementing Classes:
CacheAwareHistoryEventProducer
,DefaultHistoryEventProducer
public interface HistoryEventProducer
The producer for history events. The history event producer is
responsible for extracting data from the runtime structures
(Executions, Tasks, ...) and adding the data to a HistoryEvent
.
- Author:
- Daniel Meyer, Marcel Wieczorek, Ingo Richtsmeier
-
Method Summary
Modifier and TypeMethodDescriptioncreateActivityInstanceEndEvt
(DelegateExecution execution) Creates the history event fired when an activity instance is ended.Creates the history event which is fired when an activity instance is migrated.createActivityInstanceStartEvt
(DelegateExecution execution) Creates the history event fired when an activity instance is started.createActivityInstanceUpdateEvt
(DelegateExecution execution) Creates the history event fired when an activity instance is updated.createActivityInstanceUpdateEvt
(DelegateExecution execution, DelegateTask task) Creates the history event fired when an activity instance is updated.createBatchEndEvent
(Batch batch) Creates the history event fired when the a batch has been completed.createBatchStartEvent
(Batch batch) Creates the history event fired when the a batch has been started.createBatchUpdateEvent
(Batch batch) Creates the history event fired when a batch has been updated.createFormPropertyUpdateEvt
(ExecutionEntity execution, String propertyId, String propertyValue, String taskId) Creates the history event fired when a form property is updated.Creates the history event when an external task has been created.Creates the history event when an external task has been deleted.Creates the history event when the execution of an external task has failed.Creates the history event when the execution of an external task was successful.createHistoricIdentityLinkAddEvent
(IdentityLink identitylink) Fired when an identity link is addedcreateHistoricIdentityLinkDeleteEvent
(IdentityLink identityLink) Fired when an identity links is deletedcreateHistoricIncidentCreateEvt
(Incident incident) createHistoricIncidentDeleteEvt
(Incident incident) createHistoricIncidentMigrateEvt
(Incident incident) createHistoricIncidentResolveEvt
(Incident incident) createHistoricIncidentUpdateEvt
(Incident incident) Creates the history event fired when a job has been created.Creates the history event fired when the a job has been deleted.createHistoricJobLogFailedEvt
(Job job, Throwable exception) Creates the history event fired when the execution of a job failed.Creates the history event fired when the execution of a job was successful.createHistoricVariableCreateEvt
(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is created.createHistoricVariableDeleteEvt
(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is deleted.createHistoricVariableMigrateEvt
(VariableInstanceEntity variableInstance) Creates the history event fired when a variable is migrated.createHistoricVariableUpdateEvt
(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is updated.createProcessInstanceEndEvt
(DelegateExecution execution) Creates the history event fired when a process instance is ended.createProcessInstanceMigrateEvt
(DelegateExecution execution) Creates the history event fired when a process instance is migrated.createProcessInstanceStartEvt
(DelegateExecution execution) Creates the history event fired when a process instances is created.createProcessInstanceUpdateEvt
(DelegateExecution execution) Creates the history event fired when a process instance is updated.createTaskInstanceCompleteEvt
(DelegateTask task, String deleteReason) Creates the history event fired when a task instances is completed.Creates the history event fired when a task instance is created.Creates the history event fired when a task instance is migrated.Creates the history event fired when a task instance is updated.Creates the history event fired whenever an operation has been performed by a user.
-
Method Details
-
createProcessInstanceStartEvt
Creates the history event fired when a process instances is created.- Parameters:
execution
- the current execution.- Returns:
- the history event
-
createProcessInstanceUpdateEvt
Creates the history event fired when a process instance is updated.- Parameters:
execution
- the process instance- Returns:
- the created history event
-
createProcessInstanceMigrateEvt
Creates the history event fired when a process instance is migrated.- Parameters:
execution
- the process instance- Returns:
- the created history event
-
createProcessInstanceEndEvt
Creates the history event fired when a process instance is ended.- Parameters:
execution
- the current execution.- Returns:
- the history event
-
createActivityInstanceStartEvt
Creates the history event fired when an activity instance is started.- Parameters:
execution
- the current execution.- Returns:
- the history event
-
createActivityInstanceUpdateEvt
Creates the history event fired when an activity instance is updated.- Parameters:
execution
- the current execution.- Returns:
- the history event
-
createActivityInstanceUpdateEvt
Creates the history event fired when an activity instance is updated.- Parameters:
execution
- the current execution.task
- the task association that is currently updated. (May be null in case there is not task associated.)- Returns:
- the history event
-
createActivityInstanceMigrateEvt
Creates the history event which is fired when an activity instance is migrated.- Parameters:
actInstance
- the migrated activity instance which contains the new id's- Returns:
- the created history event
-
createActivityInstanceEndEvt
Creates the history event fired when an activity instance is ended.- Parameters:
execution
- the current execution.- Returns:
- the history event
-
createTaskInstanceCreateEvt
Creates the history event fired when a task instance is created.- Parameters:
task
- the task- Returns:
- the history event
-
createTaskInstanceUpdateEvt
Creates the history event fired when a task instance is updated.- Parameters:
task
- the task- Returns:
- the history event
-
createTaskInstanceMigrateEvt
Creates the history event fired when a task instance is migrated.- Parameters:
task
- the task- Returns:
- the history event
-
createTaskInstanceCompleteEvt
Creates the history event fired when a task instances is completed.- Parameters:
task
- the taskdeleteReason
-- Returns:
- the history event
-
createUserOperationLogEvents
Creates the history event fired whenever an operation has been performed by a user. This is used for logging actions such as creating a new Task, completing a task, canceling a a process instance, ...- Parameters:
context
- theUserOperationLogContext
providing the needed informations- Returns:
- a
List
ofHistoryEvent
s
-
createHistoricVariableCreateEvt
HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is created.- Parameters:
variableInstance
- the runtime variable instancethe
- scope to which the variable is linked- Returns:
- the history event
-
createHistoricVariableUpdateEvt
HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is updated.- Parameters:
variableInstance
- the runtime variable instancethe
- scope to which the variable is linked- Returns:
- the history event
-
createHistoricVariableMigrateEvt
Creates the history event fired when a variable is migrated.- Parameters:
variableInstance
- the runtime variable instancethe
- scope to which the variable is linked- Returns:
- the history event
-
createHistoricVariableDeleteEvt
HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance, VariableScope sourceVariableScope) Creates the history event fired when a variable is deleted.- Parameters:
variableInstance
-variableScopeImpl
-- Returns:
- the history event
-
createFormPropertyUpdateEvt
HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution, String propertyId, String propertyValue, String taskId) Creates the history event fired when a form property is updated.- Parameters:
processInstance
- the id for the process instancepropertyId
- the id of the form propertypropertyValue
- the value of the form propertytaskId
-- Returns:
- the history event
-
createHistoricIncidentCreateEvt
-
createHistoricIncidentResolveEvt
-
createHistoricIncidentDeleteEvt
-
createHistoricIncidentMigrateEvt
-
createHistoricIncidentUpdateEvt
-
createHistoricJobLogCreateEvt
Creates the history event fired when a job has been created.- Since:
- 7.3
-
createHistoricJobLogFailedEvt
Creates the history event fired when the execution of a job failed.- Since:
- 7.3
-
createHistoricJobLogSuccessfulEvt
Creates the history event fired when the execution of a job was successful.- Since:
- 7.3
-
createHistoricJobLogDeleteEvt
Creates the history event fired when the a job has been deleted.- Since:
- 7.3
-
createBatchStartEvent
Creates the history event fired when the a batch has been started.- Since:
- 7.5
-
createBatchEndEvent
Creates the history event fired when the a batch has been completed.- Since:
- 7.5
-
createBatchUpdateEvent
Creates the history event fired when a batch has been updated.- Since:
- 7.18
-
createHistoricIdentityLinkAddEvent
Fired when an identity link is added- Parameters:
identitylink
-- Returns:
-
createHistoricIdentityLinkDeleteEvent
Fired when an identity links is deleted- Parameters:
identityLink
-- Returns:
-
createHistoricExternalTaskLogCreatedEvt
Creates the history event when an external task has been created.- Since:
- 7.7
-
createHistoricExternalTaskLogFailedEvt
Creates the history event when the execution of an external task has failed.- Since:
- 7.7
-
createHistoricExternalTaskLogSuccessfulEvt
Creates the history event when the execution of an external task was successful.- Since:
- 7.7
-
createHistoricExternalTaskLogDeletedEvt
Creates the history event when an external task has been deleted.- Since:
- 7.7
-