Package org.activiti.engine.impl.event.logger.handler

Examples of org.activiti.engine.impl.event.logger.handler.EventLoggerEventHandler


    addEventHandler(ActivitiEventType.VARIABLE_UPDATED, VariableUpdatedEventHandler.class);
  }
 
  @Override
  public void onEvent(ActivitiEvent event) {
    EventLoggerEventHandler eventHandler = getEventHandler(event);
    if (eventHandler != null) {

      // Events are flushed when command context is closed
      CommandContext currentCommandContext = Context.getCommandContext();
      EventFlusher eventFlusher = (EventFlusher) currentCommandContext.getAttribute(EVENT_FLUSHER_KEY);
View Full Code Here


  }

  protected EventLoggerEventHandler instantiateEventHandler(ActivitiEvent event,
      Class<? extends EventLoggerEventHandler> eventHandlerClass) {
    try {
      EventLoggerEventHandler eventHandler = eventHandlerClass.newInstance();
      eventHandler.setTimeStamp(clock.getCurrentTime());
      eventHandler.setEvent(event);
      eventHandler.setObjectMapper(objectMapper);
      return eventHandler;
    } catch (Exception e) {
      logger.warn("Could not instantiate " + eventHandlerClass + ", this is most likely a programmatic error");
    }
    return null;
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.event.logger.handler.EventLoggerEventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.