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 java.lang.Object implements ExecutionListener
An
ExecutionListener
implementation 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 HistoryEventProducer
eventProducer
protected HistoryLevel
historyLevel
-
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 HistoryEvent
createHistoryEvent(DelegateExecution execution)
protected void
ensureHistoryLevelInitialized()
void
notify(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 java.lang.Exception
- Specified by:
notify
in interfaceDelegateListener<DelegateExecution>
- Specified by:
notify
in interfaceExecutionListener
- Throws:
java.lang.Exception
-
ensureHistoryLevelInitialized
protected void ensureHistoryLevelInitialized()
-
createHistoryEvent
protected abstract HistoryEvent createHistoryEvent(DelegateExecution execution)
-
-