Class DbHistoryEventHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.history.handler.DbHistoryEventHandler
-
- All Implemented Interfaces:
HistoryEventHandler
public class DbHistoryEventHandler extends java.lang.Object implements HistoryEventHandler
History event handler that writes history events to the process engine database using the DbEntityManager.
- Author:
- Daniel Meyer
-
-
Constructor Summary
Constructors Constructor Description DbHistoryEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DbEntityManager
getDbEntityManager()
void
handleEvent(HistoryEvent historyEvent)
Called by the process engine when an history event is fired.void
handleEvents(java.util.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 HistoricVariableUpdateEventEntityprotected void
insertOrUpdate(HistoryEvent historyEvent)
general history event insert behaviorprotected boolean
isInitialEvent(HistoryEvent historyEvent)
protected boolean
shouldWriteHistoricDetail(HistoricVariableUpdateEventEntity historyEvent)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(HistoryEvent historyEvent)
Description copied from interface:HistoryEventHandler
Called by the process engine when an history event is fired.- Specified by:
handleEvent
in interfaceHistoryEventHandler
- Parameters:
historyEvent
- theHistoryEvent
that is about to be fired.
-
handleEvents
public void handleEvents(java.util.List<HistoryEvent> historyEvents)
Description copied from interface:HistoryEventHandler
Called by the process engine when an history event is fired.- Specified by:
handleEvents
in interfaceHistoryEventHandler
- Parameters:
historyEvents
- theHistoryEvent
that is about to be fired.
-
insertOrUpdate
protected void insertOrUpdate(HistoryEvent historyEvent)
general history event insert behavior
-
insertHistoricVariableUpdateEntity
protected void insertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)
customized insert behavior for HistoricVariableUpdateEventEntity
-
shouldWriteHistoricDetail
protected boolean shouldWriteHistoricDetail(HistoricVariableUpdateEventEntity historyEvent)
-
insertHistoricDecisionEvaluationEvent
protected void insertHistoricDecisionEvaluationEvent(HistoricDecisionEvaluationEvent event)
-
isInitialEvent
protected boolean isInitialEvent(HistoryEvent historyEvent)
-
getDbEntityManager
protected DbEntityManager getDbEntityManager()
-
-