org.camunda.bpm.engine.impl.history.parser
Class HistoryExecutionListener

java.lang.Object
  extended by 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 ExecutionListener implementation that delegates to a HistoryEventProducer.

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
protected  HistoryEventProducer eventProducer
           
protected  HistoryLevel historyLevel
           
 
Fields inherited from interface org.camunda.bpm.engine.delegate.ExecutionListener
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
 
Constructor Summary
HistoryExecutionListener(HistoryEventProducer historyEventProducer, HistoryLevel historyLevel)
           
 
Method Summary
protected abstract  HistoryEvent createHistoryEvent(DelegateExecution execution)
           
 void notify(DelegateExecution execution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventProducer

protected final HistoryEventProducer eventProducer

historyLevel

protected HistoryLevel historyLevel
Constructor Detail

HistoryExecutionListener

public HistoryExecutionListener(HistoryEventProducer historyEventProducer,
                                HistoryLevel historyLevel)
Method Detail

notify

public void notify(DelegateExecution execution)
            throws Exception
Specified by:
notify in interface DelegateListener<DelegateExecution>
Specified by:
notify in interface ExecutionListener
Throws:
Exception

createHistoryEvent

protected abstract HistoryEvent createHistoryEvent(DelegateExecution execution)


Copyright © 2017 camunda services GmbH. All rights reserved.