public class DbHistoryEventHandler extends Object implements HistoryEventHandler
History event handler that writes history events to the process engine database using the DbSqlSession.
Constructor and Description |
---|
DbHistoryEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected DbSqlSession |
getDbSqlSession() |
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.
|
protected void |
insertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)
customized insert behavior for HistoricVariableUpdateEventEntity
|
protected void |
insertOrUpdate(HistoryEvent historyEvent)
general history event insert behavior
|
protected boolean |
isInitialEvent(String eventType) |
public void handleEvent(HistoryEvent historyEvent)
HistoryEventHandler
handleEvent
in interface HistoryEventHandler
historyEvent
- the HistoryEvent
that is about to be fired.public void handleEvents(List<HistoryEvent> historyEvents)
HistoryEventHandler
handleEvents
in interface HistoryEventHandler
protected void insertOrUpdate(HistoryEvent historyEvent)
protected void insertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)
protected boolean isInitialEvent(String eventType)
protected DbSqlSession getDbSqlSession()
Copyright © 2015. All rights reserved.