org.ow2.bonita.pvm.processlog
Class ProcessLogImpl
java.lang.Object
org.ow2.bonita.pvm.processlog.ProcessLogImpl
- All Implemented Interfaces:
- java.io.Serializable, ProcessLog
public abstract class ProcessLogImpl
- extends java.lang.Object
- implements java.io.Serializable, ProcessLog
base class for process logs. Process logs are dispatched to the
LogSession
that is configured in the environment.
ProcessLogs that are send to a LogSession is the probe mechanism provided to
listen into the process execution progress and details. It is the mechanism
to collect process history and process statistics.
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dbid
protected long dbid
index
protected int index
time
protected java.util.Date time
execution
protected Execution execution
processInstance
protected Execution processInstance
ProcessLogImpl
public ProcessLogImpl()
setExecution
public void setExecution(ExecutionImpl execution)
getType
public abstract java.lang.String getType()
- text id of the type of this process log used for XML serialization.
- Specified by:
getType
in interface ProcessLog
getProperties
public abstract java.util.List<ProcessLogProperty> getProperties()
- xml representation of the process log properties used for XML
serialization. Properties time, execution and processInstance should not be
included. This method is made abstract to remind and encourage implementors
to provide XML serialization capabilities to the fixed process log XML
schema. But it is allowed to return null if XML serialisation if you're
sure that XML serialization will never be necessary.
- Specified by:
getProperties
in interface ProcessLog
toString
public java.lang.String toString()
- provides a text description for this update which can be used e.g. in the
admin web console. This texts hould not contain time, execution nor
processInstance. The default implementation will include the
type
and then append all the top level properties.
- Specified by:
toString
in interface ProcessLog
- Overrides:
toString
in class java.lang.Object
getDbid
public long getDbid()
- Specified by:
getDbid
in interface ProcessLog
getTime
public java.util.Date getTime()
- Specified by:
getTime
in interface ProcessLog
setTime
public void setTime(java.util.Date date)
- Specified by:
setTime
in interface ProcessLog
getExecution
public Execution getExecution()
- Specified by:
getExecution
in interface ProcessLog
getIndex
public int getIndex()
getProcessInstance
public Execution getProcessInstance()
- Specified by:
getProcessInstance
in interface ProcessLog
setIndex
public void setIndex(int index)
Copyright © 2009 OW2 Consortium. All Rights Reserved.