Class EventLogger
java.lang.Object
org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
org.flowable.engine.impl.event.logger.EventLogger
- All Implemented Interfaces:
FlowableEventListener
- Author:
- Joram Barrez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Clockprotected Map<FlowableEngineEventType,Class<? extends EventLoggerEventHandler>> protected List<EventLoggerListener>protected com.fasterxml.jackson.databind.ObjectMapperFields inherited from class org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
onTransaction -
Constructor Summary
ConstructorsConstructorDescriptionEventLogger(Clock clock, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventHandler(FlowableEngineEventType eventType, Class<? extends EventLoggerEventHandler> eventHandlerClass) voidaddEventLoggerListener(EventLoggerListener listener) protected EventFlusherSubclasses that want something else than the database flusher should override this methodgetClock()protected EventLoggerEventHandlergetEventHandler(FlowableEvent event) com.fasterxml.jackson.databind.ObjectMapperprotected voidprotected EventLoggerEventHandlerinstantiateEventHandler(FlowableEvent event, Class<? extends EventLoggerEventHandler> eventHandlerClass) booleanvoidonEvent(FlowableEvent event) Called when an event has been firedvoidvoidsetListeners(List<EventLoggerListener> listeners) voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Methods inherited from class org.flowable.common.engine.api.delegate.event.AbstractFlowableEventListener
getOnTransaction, isFireOnTransactionLifecycleEvent, setOnTransactionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.flowable.common.engine.api.delegate.event.FlowableEventListener
getTypes
-
Field Details
-
clock
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
eventHandlers
-
listeners
-
-
Constructor Details
-
EventLogger
public EventLogger() -
EventLogger
-
-
Method Details
-
initializeDefaultHandlers
protected void initializeDefaultHandlers() -
onEvent
Description copied from interface:FlowableEventListenerCalled when an event has been fired- Parameters:
event- the event
-
getEventHandler
-
instantiateEventHandler
protected EventLoggerEventHandler instantiateEventHandler(FlowableEvent event, Class<? extends EventLoggerEventHandler> eventHandlerClass) -
isFailOnException
public boolean isFailOnException()- Returns:
- whether or not the current operation should fail when this listeners execution throws an exception.
-
addEventHandler
public void addEventHandler(FlowableEngineEventType eventType, Class<? extends EventLoggerEventHandler> eventHandlerClass) -
addEventLoggerListener
-
createEventFlusher
Subclasses that want something else than the database flusher should override this method -
getClock
-
setClock
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setObjectMapper
public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
getListeners
-
setListeners
-