org.jbpm.logging.exe
Class LoggingInstance

java.lang.Object
  extended by org.jbpm.module.exe.ModuleInstance
      extended by org.jbpm.logging.exe.LoggingInstance
All Implemented Interfaces:
Serializable

public class LoggingInstance
extends ModuleInstance

non persisted class that collects ProcessLogs during process execution. When the process instance gets saved, the process logs will be saved by the LoggingSession.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.module.exe.ModuleInstance
processInstance
 
Constructor Summary
LoggingInstance()
           
 
Method Summary
 void addLog(ProcessLog processLog)
           
 void endCompositeLog()
           
 List getLogs()
          If you modify the returned list in any way, you run the risk of causing exceptions in a concurrent situation.
 List getLogs(Class filterClass)
          get logs, filtered by log type.
static List getLogs(Collection logs, Class filterClass)
           
 void logLogs()
           
 void startCompositeLog(CompositeLog compositeLog)
           
 
Methods inherited from class org.jbpm.module.exe.ModuleInstance
equals, getId, getProcessInstance, getService, hashCode, setProcessInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingInstance

public LoggingInstance()
Method Detail

startCompositeLog

public void startCompositeLog(CompositeLog compositeLog)

endCompositeLog

public void endCompositeLog()

addLog

public void addLog(ProcessLog processLog)

getLogs

public List getLogs()
If you modify the returned list in any way, you run the risk of causing exceptions in a concurrent situation.

Returns:
The list of logs

getLogs

public List getLogs(Class filterClass)
get logs, filtered by log type.


getLogs

public static List getLogs(Collection logs,
                           Class filterClass)

logLogs

public void logLogs()


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.