org.camunda.bpm.engine.impl.history.producer
Class DefaultHistoryEventProducer
java.lang.Object
org.camunda.bpm.engine.impl.history.producer.DefaultHistoryEventProducer
- All Implemented Interfaces:
- HistoryEventProducer
- Direct Known Subclasses:
- CacheAwareHistoryEventProducer
public class DefaultHistoryEventProducer
- extends Object
- implements HistoryEventProducer
- Author:
- Daniel Meyer
|
Method Summary |
HistoryEvent |
createActivityInstanceEndEvt(DelegateExecution execution)
Creates the history event fired when an activity instances is ended. |
HistoryEvent |
createActivityInstanceStartEvt(DelegateExecution execution)
Creates the history event fired when an activity instances is started. |
HistoryEvent |
createActivityInstanceUpdateEvt(DelegateExecution execution,
DelegateTask task)
Creates the history event fired when an activity instances is updated. |
HistoryEvent |
createFormPropertyUpdateEvt(ExecutionEntity execution,
String propertyId,
String propertyValue,
String taskId)
Creates the history event fired when a form property is updated. |
HistoryEvent |
createHistoricIncidentCreateEvt(Incident incident)
|
HistoryEvent |
createHistoricIncidentDeleteEvt(Incident incident)
|
protected HistoryEvent |
createHistoricIncidentEvt(Incident incident,
HistoryEventTypes eventType)
|
HistoryEvent |
createHistoricIncidentResolveEvt(Incident incident)
|
HistoryEvent |
createHistoricJobLogCreateEvt(Job job)
Creates the history event fired when a job has been created. |
HistoryEvent |
createHistoricJobLogDeleteEvt(Job job)
Creates the history event fired when the a job has been deleted. |
protected HistoryEvent |
createHistoricJobLogEvt(Job job,
HistoryEventType eventType)
|
HistoryEvent |
createHistoricJobLogFailedEvt(Job job,
Throwable exception)
Creates the history event fired when the execution of a job failed. |
HistoryEvent |
createHistoricJobLogSuccessfulEvt(Job job)
Creates the history event fired when the execution of a job was successful. |
HistoryEvent |
createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
Creates the history event fired when a variable is created. |
HistoryEvent |
createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
Creates the history event fired when a variable is deleted. |
protected HistoryEvent |
createHistoricVariableEvent(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope,
HistoryEventType eventType)
|
HistoryEvent |
createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
Creates the history event fired when a variable is updated. |
HistoryEvent |
createProcessInstanceEndEvt(DelegateExecution execution)
Creates the history event fired when a process instances is ended. |
HistoryEvent |
createProcessInstanceStartEvt(DelegateExecution execution)
Creates the history event fired when an process instances is created. |
HistoryEvent |
createTaskInstanceCompleteEvt(DelegateTask task,
String deleteReason)
Creates the history event fired when a task instances is completed. |
HistoryEvent |
createTaskInstanceCreateEvt(DelegateTask task)
Creates the history event fired when a task instances is created. |
HistoryEvent |
createTaskInstanceUpdateEvt(DelegateTask task)
Creates the history event fired when a task instances is updated. |
List<HistoryEvent> |
createUserOperationLogEvents(UserOperationLogContext context)
Creates the history event fired whenever an operation has been performed by a user. |
protected void |
initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt,
ExecutionEntity execution,
HistoryEventType eventType)
|
protected void |
initHistoricIncidentEvent(HistoricIncidentEventEntity evt,
Incident incident,
HistoryEventType eventType)
|
protected void |
initHistoricJobLogEvent(HistoricJobLogEventEntity evt,
Job job,
HistoryEventType eventType)
|
protected void |
initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt,
VariableInstanceEntity variableInstance,
HistoryEventType eventType)
|
protected void |
initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt,
ExecutionEntity execution,
HistoryEventType eventType)
|
protected void |
initSequenceCounter(ExecutionEntity execution,
HistoryEvent event)
|
protected void |
initSequenceCounter(JobEntity job,
HistoryEvent event)
|
protected void |
initSequenceCounter(long sequenceCounter,
HistoryEvent event)
|
protected void |
initSequenceCounter(VariableInstanceEntity variable,
HistoryEvent event)
|
protected void |
initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt,
TaskEntity taskEntity,
HistoryEventType eventType)
|
protected void |
initUserOperationLogEvent(UserOperationLogEntryEventEntity evt,
UserOperationLogContext context,
PropertyChange propertyChange)
|
protected HistoricActivityInstanceEventEntity |
loadActivityInstanceEventEntity(ExecutionEntity execution)
|
protected HistoricIncidentEventEntity |
loadIncidentEvent(Incident incident)
|
protected HistoricProcessInstanceEventEntity |
loadProcessInstanceEventEntity(ExecutionEntity execution)
|
protected HistoricTaskInstanceEventEntity |
loadTaskInstanceEvent(DelegateTask task)
|
protected HistoricActivityInstanceEventEntity |
newActivityInstanceEventEntity(ExecutionEntity execution)
|
protected HistoricFormPropertyEventEntity |
newHistoricFormPropertyEvent()
|
protected HistoricJobLogEventEntity |
newHistoricJobLogEntity(Job job)
|
protected HistoricIncidentEventEntity |
newIncidentEventEntity(Incident incident)
|
protected HistoricProcessInstanceEventEntity |
newProcessInstanceEventEntity(ExecutionEntity execution)
|
protected HistoricTaskInstanceEventEntity |
newTaskInstanceEventEntity(DelegateTask task)
|
protected HistoricVariableUpdateEventEntity |
newVariableUpdateEventEntity(ExecutionEntity execution)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHistoryEventProducer
public DefaultHistoryEventProducer()
initActivityInstanceEvent
protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt,
ExecutionEntity execution,
HistoryEventType eventType)
initProcessInstanceEvent
protected void initProcessInstanceEvent(HistoricProcessInstanceEventEntity evt,
ExecutionEntity execution,
HistoryEventType eventType)
initTaskInstanceEvent
protected void initTaskInstanceEvent(HistoricTaskInstanceEventEntity evt,
TaskEntity taskEntity,
HistoryEventType eventType)
initHistoricVariableUpdateEvt
protected void initHistoricVariableUpdateEvt(HistoricVariableUpdateEventEntity evt,
VariableInstanceEntity variableInstance,
HistoryEventType eventType)
initUserOperationLogEvent
protected void initUserOperationLogEvent(UserOperationLogEntryEventEntity evt,
UserOperationLogContext context,
PropertyChange propertyChange)
initHistoricIncidentEvent
protected void initHistoricIncidentEvent(HistoricIncidentEventEntity evt,
Incident incident,
HistoryEventType eventType)
createHistoricVariableEvent
protected HistoryEvent createHistoricVariableEvent(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope,
HistoryEventType eventType)
newProcessInstanceEventEntity
protected HistoricProcessInstanceEventEntity newProcessInstanceEventEntity(ExecutionEntity execution)
newActivityInstanceEventEntity
protected HistoricActivityInstanceEventEntity newActivityInstanceEventEntity(ExecutionEntity execution)
newTaskInstanceEventEntity
protected HistoricTaskInstanceEventEntity newTaskInstanceEventEntity(DelegateTask task)
newVariableUpdateEventEntity
protected HistoricVariableUpdateEventEntity newVariableUpdateEventEntity(ExecutionEntity execution)
newHistoricFormPropertyEvent
protected HistoricFormPropertyEventEntity newHistoricFormPropertyEvent()
newIncidentEventEntity
protected HistoricIncidentEventEntity newIncidentEventEntity(Incident incident)
newHistoricJobLogEntity
protected HistoricJobLogEventEntity newHistoricJobLogEntity(Job job)
loadProcessInstanceEventEntity
protected HistoricProcessInstanceEventEntity loadProcessInstanceEventEntity(ExecutionEntity execution)
loadActivityInstanceEventEntity
protected HistoricActivityInstanceEventEntity loadActivityInstanceEventEntity(ExecutionEntity execution)
loadTaskInstanceEvent
protected HistoricTaskInstanceEventEntity loadTaskInstanceEvent(DelegateTask task)
loadIncidentEvent
protected HistoricIncidentEventEntity loadIncidentEvent(Incident incident)
createProcessInstanceStartEvt
public HistoryEvent createProcessInstanceStartEvt(DelegateExecution execution)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when an process instances is created.
- Specified by:
createProcessInstanceStartEvt in interface HistoryEventProducer
- Parameters:
execution - the current execution.
- Returns:
- the history event
createProcessInstanceEndEvt
public HistoryEvent createProcessInstanceEndEvt(DelegateExecution execution)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a process instances is ended.
- Specified by:
createProcessInstanceEndEvt in interface HistoryEventProducer
- Parameters:
execution - the current execution.
- Returns:
- the history event
createActivityInstanceStartEvt
public HistoryEvent createActivityInstanceStartEvt(DelegateExecution execution)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when an activity instances is started.
- Specified by:
createActivityInstanceStartEvt in interface HistoryEventProducer
- Parameters:
execution - the current execution.
- Returns:
- the history event
createActivityInstanceUpdateEvt
public HistoryEvent createActivityInstanceUpdateEvt(DelegateExecution execution,
DelegateTask task)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when an activity instances is updated.
- Specified by:
createActivityInstanceUpdateEvt in interface HistoryEventProducer
- 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
createActivityInstanceEndEvt
public HistoryEvent createActivityInstanceEndEvt(DelegateExecution execution)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when an activity instances is ended.
- Specified by:
createActivityInstanceEndEvt in interface HistoryEventProducer
- Parameters:
execution - the current execution.
- Returns:
- the history event
createTaskInstanceCreateEvt
public HistoryEvent createTaskInstanceCreateEvt(DelegateTask task)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a task instances is created.
- Specified by:
createTaskInstanceCreateEvt in interface HistoryEventProducer
- Parameters:
task - the task
- Returns:
- the history event
createTaskInstanceUpdateEvt
public HistoryEvent createTaskInstanceUpdateEvt(DelegateTask task)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a task instances is updated.
- Specified by:
createTaskInstanceUpdateEvt in interface HistoryEventProducer
- Parameters:
task - the task
- Returns:
- the history event
createTaskInstanceCompleteEvt
public HistoryEvent createTaskInstanceCompleteEvt(DelegateTask task,
String deleteReason)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a task instances is completed.
- Specified by:
createTaskInstanceCompleteEvt in interface HistoryEventProducer
- Parameters:
task - the task
- Returns:
- the history event
createUserOperationLogEvents
public List<HistoryEvent> createUserOperationLogEvents(UserOperationLogContext context)
- Description copied from interface:
HistoryEventProducer
- 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, ...
- Specified by:
createUserOperationLogEvents in interface HistoryEventProducer
- Parameters:
context - the UserOperationLogContext providing the needed informations
- Returns:
- a
List of HistoryEvents
createHistoricVariableCreateEvt
public HistoryEvent createHistoricVariableCreateEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a variable is created.
- Specified by:
createHistoricVariableCreateEvt in interface HistoryEventProducer
- Parameters:
variableInstance - the runtime variable instance
- Returns:
- the history event
createHistoricVariableDeleteEvt
public HistoryEvent createHistoricVariableDeleteEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a variable is deleted.
- Specified by:
createHistoricVariableDeleteEvt in interface HistoryEventProducer
- Returns:
- the history event
createHistoricVariableUpdateEvt
public HistoryEvent createHistoricVariableUpdateEvt(VariableInstanceEntity variableInstance,
VariableScope sourceVariableScope)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a variable is updated.
- Specified by:
createHistoricVariableUpdateEvt in interface HistoryEventProducer
- Parameters:
variableInstance - the runtime variable instance
- Returns:
- the history event
createFormPropertyUpdateEvt
public HistoryEvent createFormPropertyUpdateEvt(ExecutionEntity execution,
String propertyId,
String propertyValue,
String taskId)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a form property is updated.
- Specified by:
createFormPropertyUpdateEvt in interface HistoryEventProducer
propertyId - the id of the form propertypropertyValue - the value of the form property
- Returns:
- the history event
createHistoricIncidentCreateEvt
public HistoryEvent createHistoricIncidentCreateEvt(Incident incident)
- Specified by:
createHistoricIncidentCreateEvt in interface HistoryEventProducer
createHistoricIncidentResolveEvt
public HistoryEvent createHistoricIncidentResolveEvt(Incident incident)
- Specified by:
createHistoricIncidentResolveEvt in interface HistoryEventProducer
createHistoricIncidentDeleteEvt
public HistoryEvent createHistoricIncidentDeleteEvt(Incident incident)
- Specified by:
createHistoricIncidentDeleteEvt in interface HistoryEventProducer
createHistoricIncidentEvt
protected HistoryEvent createHistoricIncidentEvt(Incident incident,
HistoryEventTypes eventType)
createHistoricJobLogCreateEvt
public HistoryEvent createHistoricJobLogCreateEvt(Job job)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when a job has been created.
- Specified by:
createHistoricJobLogCreateEvt in interface HistoryEventProducer
createHistoricJobLogFailedEvt
public HistoryEvent createHistoricJobLogFailedEvt(Job job,
Throwable exception)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when the execution of a job failed.
- Specified by:
createHistoricJobLogFailedEvt in interface HistoryEventProducer
createHistoricJobLogSuccessfulEvt
public HistoryEvent createHistoricJobLogSuccessfulEvt(Job job)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when the execution of a job was successful.
- Specified by:
createHistoricJobLogSuccessfulEvt in interface HistoryEventProducer
createHistoricJobLogDeleteEvt
public HistoryEvent createHistoricJobLogDeleteEvt(Job job)
- Description copied from interface:
HistoryEventProducer
- Creates the history event fired when the a job has been deleted.
- Specified by:
createHistoricJobLogDeleteEvt in interface HistoryEventProducer
createHistoricJobLogEvt
protected HistoryEvent createHistoricJobLogEvt(Job job,
HistoryEventType eventType)
initHistoricJobLogEvent
protected void initHistoricJobLogEvent(HistoricJobLogEventEntity evt,
Job job,
HistoryEventType eventType)
initSequenceCounter
protected void initSequenceCounter(ExecutionEntity execution,
HistoryEvent event)
initSequenceCounter
protected void initSequenceCounter(VariableInstanceEntity variable,
HistoryEvent event)
initSequenceCounter
protected void initSequenceCounter(JobEntity job,
HistoryEvent event)
initSequenceCounter
protected void initSequenceCounter(long sequenceCounter,
HistoryEvent event)
Copyright © 2015 camunda services GmbH. All rights reserved.