public interface HistoryEventHandler
The interface for implementing an history event handler.
The HistoryEventHandler
is responsible for consuming the event. Many different
implementations of this interface can be imagined. Some implementations might persist the
event to a database, others might persist the event to a message queue and handle it
asynchronously.
The default implementation of this interface is DbHistoryEventHandler
which
persists events to a database.
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(HistoryEvent historyEvent)
Called by the process engine when an history event is fired.
|
void |
handleEvents(List<HistoryEvent> historyEvents)
Called by the process engine when an history event is fired.
|
void handleEvent(HistoryEvent historyEvent)
historyEvent
- the HistoryEvent
that is about to be fired.void handleEvents(List<HistoryEvent> historyEvents)
historyEvents
- the HistoryEvent
that is about to be fired.Copyright © 2019. All rights reserved.