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 DbEntityManagergetDbEntityManager()voidhandleEvent(HistoryEvent historyEvent)Called by the process engine when an history event is fired.voidhandleEvents(java.util.List<HistoryEvent> historyEvents)Called by the process engine when an history event is fired.protected voidinsertHistoricDecisionEvaluationEvent(HistoricDecisionEvaluationEvent event)protected voidinsertHistoricVariableUpdateEntity(HistoricVariableUpdateEventEntity historyEvent)customized insert behavior for HistoricVariableUpdateEventEntityprotected voidinsertOrUpdate(HistoryEvent historyEvent)general history event insert behaviorprotected booleanisInitialEvent(HistoryEvent historyEvent)protected booleanshouldWriteHistoricDetail(HistoricVariableUpdateEventEntity historyEvent)
-
-
-
Method Detail
-
handleEvent
public void handleEvent(HistoryEvent historyEvent)
Description copied from interface:HistoryEventHandlerCalled by the process engine when an history event is fired.- Specified by:
handleEventin interfaceHistoryEventHandler- Parameters:
historyEvent- theHistoryEventthat is about to be fired.
-
handleEvents
public void handleEvents(java.util.List<HistoryEvent> historyEvents)
Description copied from interface:HistoryEventHandlerCalled by the process engine when an history event is fired.- Specified by:
handleEventsin interfaceHistoryEventHandler- Parameters:
historyEvents- theHistoryEventthat 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()
-
-