org.ow2.bonita.pvm.processlog
Class ProcessLogImpl

java.lang.Object
  extended by 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

Field Summary
protected  long dbid
           
protected  Execution execution
           
protected  int index
           
protected  Execution processInstance
           
protected  java.util.Date time
           
 
Constructor Summary
ProcessLogImpl()
           
 
Method Summary
 long getDbid()
           
 Execution getExecution()
           
 int getIndex()
           
 Execution getProcessInstance()
           
abstract  java.util.List<ProcessLogProperty> getProperties()
          xml representation of the process log properties used for XML serialization.
 java.util.Date getTime()
           
abstract  java.lang.String getType()
          text id of the type of this process log used for XML serialization.
 void setExecution(ExecutionImpl execution)
           
 void setIndex(int index)
           
 void setTime(java.util.Date date)
           
 java.lang.String toString()
          provides a text description for this update which can be used e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.bonita.pvm.processlog.ProcessLog
setExecution
 

Field Detail

dbid

protected long dbid

index

protected int index

time

protected java.util.Date time

execution

protected Execution execution

processInstance

protected Execution processInstance
Constructor Detail

ProcessLogImpl

public ProcessLogImpl()
Method Detail

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.