public class DbHistoryEventHandler extends Object implements HistoryEventHandler
History event handler that writes history events to the process engine database using the DbEntityManager.
Constructor and Description |
---|
DbHistoryEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected DbEntityManager |
getDbEntityManager() |
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 |
insertHistoricDecisionEvaluationEvent(HistoricDecisionEvaluationEvent event) |
protected void |
insertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)
customized insert behavior for HistoricVariableUpdateEventEntity
|
protected void |
insertOrUpdate(HistoryEvent historyEvent)
general history event insert behavior
|
protected boolean |
isInitialEvent(HistoryEvent historyEvent) |
protected boolean |
shouldWriteHistoricDetail(HistoricVariableUpdateEventEntity historyEvent) |
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
historyEvents
- the HistoryEvent
that is about to be fired.protected void insertOrUpdate(HistoryEvent historyEvent)
protected void insertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)
protected boolean shouldWriteHistoricDetail(HistoricVariableUpdateEventEntity historyEvent)
protected void insertHistoricDecisionEvaluationEvent(HistoricDecisionEvaluationEvent event)
protected boolean isInitialEvent(HistoryEvent historyEvent)
protected DbEntityManager getDbEntityManager()
Copyright © 2019. All rights reserved.