Package org.jbpm.logging

Examples of org.jbpm.logging.LoggingService


public class SaveLogsOperation implements SaveOperation {

  private static final long serialVersionUID = 1L;

  public void save(ProcessInstance processInstance, JbpmContext jbpmContext) {
    LoggingService loggingService = jbpmContext.getServices().getLoggingService();

    if (loggingService != null) {
      LoggingInstance loggingInstance = processInstance.getLoggingInstance();
      log.debug("posting logs to logging service.");
      for (ProcessLog processLog : loggingInstance.getLogs()) {
        loggingService.log(processLog);
      }
    }
    else {
      log.debug("ignoring logs.  no logging service available.");
    }
View Full Code Here


public class SaveLogsOperation implements SaveOperation {

  private static final long serialVersionUID = 1L;

  public void save(ProcessInstance processInstance, JbpmContext jbpmContext) {
    LoggingService loggingService = jbpmContext.getServices().getLoggingService();
   
    if (loggingService!=null) {
      LoggingInstance loggingInstance = processInstance.getLoggingInstance();
      log.debug("flushing logs to logging service.");
      Iterator iter = loggingInstance.getLogs().iterator();
      while (iter.hasNext()) {
        ProcessLog processLog = (ProcessLog) iter.next();
        loggingService.log(processLog);
      }
     
    } else {
      log.debug("ignoring logs.  no logging service available.");
    }
View Full Code Here

    assertSame(authorizationService, services.getAuthorizationService());
  }

  public void testLoggingService() {
    Map serviceFactories = new HashMap();
    LoggingService loggingService = new LoggingService(){
      private static final long serialVersionUID = 1L;
      public void log(ProcessLog processLog) {}
      public void close() {}
    };
    serviceFactories.put("logging", new TestGivenServiceFactory(
View Full Code Here

TOP

Related Classes of org.jbpm.logging.LoggingService

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.