Class HistoryExecutionListener
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.parser.HistoryExecutionListener
-
- All Implemented Interfaces:
DelegateListener<DelegateExecution>,ExecutionListener
- Direct Known Subclasses:
ActivityInstanceEndListener,ActivityInstanceStartListener,ProcessInstanceEndListener,ProcessInstanceStartListener,ProcessInstanceUpdateListener
public abstract class HistoryExecutionListener extends Object implements ExecutionListener
An
ExecutionListenerimplementation that delegates to aHistoryEventProducer.This allows plugging the history as an execution listener into process execution and make sure history events are generated as we move through the process.
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected HistoryEventProducereventProducerprotected HistoryLevelhistoryLevel-
Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
-
-
Constructor Summary
Constructors Constructor Description HistoryExecutionListener(HistoryEventProducer historyEventProducer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract HistoryEventcreateHistoryEvent(DelegateExecution execution)protected voidensureHistoryLevelInitialized()voidnotify(DelegateExecution execution)
-
-
-
Field Detail
-
eventProducer
protected final HistoryEventProducer eventProducer
-
historyLevel
protected HistoryLevel historyLevel
-
-
Constructor Detail
-
HistoryExecutionListener
public HistoryExecutionListener(HistoryEventProducer historyEventProducer)
-
-
Method Detail
-
notify
public void notify(DelegateExecution execution) throws Exception
- Specified by:
notifyin interfaceDelegateListener<DelegateExecution>- Specified by:
notifyin interfaceExecutionListener- Throws:
Exception
-
ensureHistoryLevelInitialized
protected void ensureHistoryLevelInitialized()
-
createHistoryEvent
protected abstract HistoryEvent createHistoryEvent(DelegateExecution execution)
-
-