public class YEventLogger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CASE_CANCEL |
static java.lang.String |
CASE_COMPLETE |
static java.lang.String |
CASE_START |
static java.lang.String |
NET_CANCEL |
static java.lang.String |
NET_COMPLETE |
static java.lang.String |
NET_START |
static java.lang.String |
NET_UNFOLD |
Constructor and Description |
---|
YEventLogger() |
Modifier and Type | Method and Description |
---|---|
void |
disable() |
void |
enable() |
java.lang.String |
getDataSchema(YSpecificationID specID,
java.lang.String dataTypeName) |
protected HibernateEngine |
getDb() |
static YEventLogger |
getInstance() |
static YEventLogger |
getInstance(YEngine engine)
Get a reference to the event logger object.
|
int |
getMaxCaseNbr()
Gets the last allocated case number from the logs (called as secondary
source on engine startup)
|
boolean |
isEnabled() |
void |
logCaseCancelled(YIdentifier caseID,
YLogDataItemList datalist,
java.lang.String serviceRef)
Logs a case cancellation.
|
void |
logCaseCreated(YSpecificationID ySpecID,
YIdentifier caseID,
YLogDataItemList datalist,
java.lang.String serviceRef)
Logs the launching of a new process instance.
|
void |
logDataEvent(YWorkItem workitem,
java.lang.String descriptor,
YLogDataItemList datalist)
Logs data variables and values when mapped between net and workitem
|
void |
logNetCancelled(YSpecificationID ySpecID,
YNetRunner runner,
java.lang.String engineTaskID,
YLogDataItemList datalist) |
void |
logNetCompleted(YIdentifier engineNetID,
YLogDataItemList datalist)
Logs the normal completion of a net.
|
void |
logSubNetCreated(YSpecificationID ySpecID,
YNetRunner runner,
java.lang.String engineTaskID,
YLogDataItemList datalist)
Logs the launching of a sub-net (ie.
|
void |
logWorkItemEvent(YWorkItem workItem,
java.lang.String eventName,
YLogDataItemList datalist)
Logs a workitem event (change of status).
|
void |
logWorkItemEvent(YWorkItem workItem,
YWorkItemStatus event,
YLogDataItemList datalist)
Logs a workitem event (change of status).
|
void |
removeSpecificationFromCache(YSpecificationID specID) |
public static final java.lang.String CASE_START
public static final java.lang.String CASE_COMPLETE
public static final java.lang.String CASE_CANCEL
public static final java.lang.String NET_UNFOLD
public static final java.lang.String NET_START
public static final java.lang.String NET_COMPLETE
public static final java.lang.String NET_CANCEL
public static YEventLogger getInstance(YEngine engine)
engine
- a reference to the running enginepublic static YEventLogger getInstance()
public void enable()
public void disable()
public boolean isEnabled()
public java.lang.String getDataSchema(YSpecificationID specID, java.lang.String dataTypeName)
public void removeSpecificationFromCache(YSpecificationID specID)
public void logCaseCreated(YSpecificationID ySpecID, YIdentifier caseID, YLogDataItemList datalist, java.lang.String serviceRef)
ySpecID
- the id of the process specificationcaseID
- the id of the casedatalist
- a list of data entries to log with this eventserviceRef
- a reference to the client service that launched the casepublic void logSubNetCreated(YSpecificationID ySpecID, YNetRunner runner, java.lang.String engineTaskID, YLogDataItemList datalist)
ySpecID
- the id of the process specificationrunner
- the net runner launching this sub-netengineTaskID
- the task id assigned by the enginedatalist
- a list of data entries to log with this eventpublic void logCaseCancelled(YIdentifier caseID, YLogDataItemList datalist, java.lang.String serviceRef)
caseID
- the id of the casedatalist
- a list of data entries to log with this eventserviceRef
- a reference to the client service that launched the casepublic void logNetCompleted(YIdentifier engineNetID, YLogDataItemList datalist)
engineNetID
- the id of the netdatalist
- a list of data entries to log with this eventpublic void logNetCancelled(YSpecificationID ySpecID, YNetRunner runner, java.lang.String engineTaskID, YLogDataItemList datalist)
public void logWorkItemEvent(YWorkItem workItem, java.lang.String eventName, YLogDataItemList datalist)
workItem
- the workitem that triggered the eventeventName
- the event that has occurreddatalist
- a list of data entries to log with this eventpublic void logWorkItemEvent(YWorkItem workItem, YWorkItemStatus event, YLogDataItemList datalist)
workItem
- the workitem that triggered the eventevent
- the event that has occurreddatalist
- a list of data entries to log with this eventpublic void logDataEvent(YWorkItem workitem, java.lang.String descriptor, YLogDataItemList datalist)
workitem
- the workitem starting or completingdescriptor
- a label for the kind of data it isdatalist
- a list of data entries to log with this eventpublic int getMaxCaseNbr()
protected HibernateEngine getDb()
Copyright © 2004-2014 The YAWL Foundation.