org.yawlfoundation.yawl.logging
Class YLogServer

java.lang.Object
  extended by org.yawlfoundation.yawl.logging.YLogServer

public class YLogServer
extends Object

The server side of interface E. An API to retrieve data from the process event logs and pass it back as XML. Create Date: 29/10/2007. Last Date: 12/12/2007 Completely revised for the new logging schema in v2.1 11/09 - 6/10

Version:
2.0
Author:
Michael Adams

Method Summary
 void commitTransaction()
           
 String getAllCaseEventsByService(String serviceName, String eventType)
           
 String getAllCasesCancelledByService(String serviceName)
           
 String getAllCasesStartedByService(String serviceName)
           
 String getAllSpecifications()
           
 String getCaseEvent(String caseID, String eventType)
           
 String getCaseEvents(long rootNetInstanceKey)
           
 String getCaseEvents(String caseID)
           
 String getCompleteCaseLog(String caseID)
           
 String getCompleteCaseLogsForSpecification(long specKey)
           
 String getCompleteCaseLogsForSpecification(YSpecificationID specID)
           
 String getDataForEvent(long eventKey)
           
 String getDataTypeForDataItem(long dataTypeKey)
           
 String getEventsForTaskInstance(String itemID)
           
static YLogServer getInstance()
           
 String getInstanceEvents(long instanceKey)
           
 String getNetInstancesOfSpecification(long specKey)
           
 String getNetInstancesOfSpecification(YSpecificationID specID)
           
 YPersistenceManager getPersistenceManager()
           
 String getServiceName(long key)
           
 String getSpecificationStatistics(long specKey)
           
 String getSpecificationStatistics(long specKey, long from, long to)
           
 String getSpecificationStatistics(YSpecificationID specID)
           
 String getSpecificationStatistics(YSpecificationID specID, long from, long to)
           
 String getSpecificationXESLog(YSpecificationID specid, boolean withData)
           
 String getTaskInstancesForCase(String caseID)
           
 String getTaskInstancesForTask(long taskKey)
           
 String getTaskInstancesForTask(String caseID, String taskName)
           
 XNode getXESLog(YSpecificationID specID, boolean withData)
           
 boolean startTransaction()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static YLogServer getInstance()

startTransaction

public boolean startTransaction()

commitTransaction

public void commitTransaction()

getPersistenceManager

public YPersistenceManager getPersistenceManager()

getNetInstancesOfSpecification

public String getNetInstancesOfSpecification(YSpecificationID specID)

getNetInstancesOfSpecification

public String getNetInstancesOfSpecification(long specKey)
Parameters:
specKey - the specification PK to get the case instances for
Returns:
the set of all case ids for the specID passed

getCaseEvents

public String getCaseEvents(long rootNetInstanceKey)

getCaseEvents

public String getCaseEvents(String caseID)

getTaskInstancesForTask

public String getTaskInstancesForTask(String caseID,
                                      String taskName)

getInstanceEvents

public String getInstanceEvents(long instanceKey)

getDataForEvent

public String getDataForEvent(long eventKey)

getDataTypeForDataItem

public String getDataTypeForDataItem(long dataTypeKey)

getTaskInstancesForCase

public String getTaskInstancesForCase(String caseID)

getTaskInstancesForTask

public String getTaskInstancesForTask(long taskKey)

getAllSpecifications

public String getAllSpecifications()

getCaseEvent

public String getCaseEvent(String caseID,
                           String eventType)

getAllCaseEventsByService

public String getAllCaseEventsByService(String serviceName,
                                        String eventType)

getAllCasesStartedByService

public String getAllCasesStartedByService(String serviceName)

getAllCasesCancelledByService

public String getAllCasesCancelledByService(String serviceName)

getCompleteCaseLogsForSpecification

public String getCompleteCaseLogsForSpecification(YSpecificationID specID)

getSpecificationStatistics

public String getSpecificationStatistics(YSpecificationID specID)

getSpecificationStatistics

public String getSpecificationStatistics(YSpecificationID specID,
                                         long from,
                                         long to)

getSpecificationStatistics

public String getSpecificationStatistics(long specKey)

getSpecificationStatistics

public String getSpecificationStatistics(long specKey,
                                         long from,
                                         long to)

getXESLog

public XNode getXESLog(YSpecificationID specID,
                       boolean withData)

getCompleteCaseLogsForSpecification

public String getCompleteCaseLogsForSpecification(long specKey)

getCompleteCaseLog

public String getCompleteCaseLog(String caseID)

getServiceName

public String getServiceName(long key)

getEventsForTaskInstance

public String getEventsForTaskInstance(String itemID)

getSpecificationXESLog

public String getSpecificationXESLog(YSpecificationID specid,
                                     boolean withData)


Copyright © 2004-2012 The YAWL Foundation.