org.yawlfoundation.yawl.resourcing.datastore.eventlog
Class LogMiner

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.datastore.eventlog.LogMiner

public class LogMiner
extends Object

An API to retrieve data from the resource service's event logs and pass it back as XML. Create Date: 16/12/2008

Version:
2.0
Author:
Michael Adams

Method Summary
 String getAllResourceEvents()
           
 Set<String> getBusyItemIDsForCase(String caseID)
           
 List getBusyResources(String itemID)
           
 List getBusyResourcesForCase(String caseID)
           
 String getCaseEvent(String caseID, boolean launch)
           
 String getCaseEvents(String caseID)
           
 String getCaseEvents(String caseID, long from, long to)
           
 String getCaseHistoryInvolvingParticipant(String pid)
           
 String getCaseHistoryInvolvingParticipant(String pid, long from, long to)
           
 String getCaseStartedBy(String caseID)
           
static LogMiner getInstance()
           
 List getLastBusyOrReleaseEvents(String resourceID)
           
 String getMergedXESLog(YSpecificationID specid)
           
 String getMergedXESLog(YSpecificationID specid, boolean withData)
           
 String getParticipantHistory(String pid)
           
 String getParticipantHistory(String pid, long from, long to)
           
 String getParticipantHistoryForEvent(String pid, EventLogger.event eventType)
           
 String getParticipantHistoryForEvent(String pid, EventLogger.event eventType, long from, long to)
           
 String getResourceHistory(String id)
           
 String getResourceHistory(String id, long from, long to)
           
 String getResourceHistoryForEvent(String id, EventLogger.event eventType)
           
 String getResourceHistoryForEvent(String id, EventLogger.event eventType, long from, long to)
           
 String getSpecificationEvents(Set<YSpecificationID> specIDs)
           
 String getSpecificationEvents(Set<YSpecificationID> specIDs, long from, long to)
           
 String getSpecificationEvents(YSpecificationID specID)
           
 String getSpecificationEvents(YSpecificationID specID, long from, long to)
           
 String getSpecificationEventsByID(String id, long from, long to)
           
 String getSpecificationEventsByURI(String uri, long from, long to)
           
 String getSpecificationIdentifiers(String keyStr)
           
 String getSpecificationStatistics(YSpecificationID specID)
           
 String getSpecificationStatistics(YSpecificationID specID, long from, long to)
           
 String getSpecificationXESLog(YSpecificationID specid)
           
 String getTaskEvents(long specKey, String taskName)
           
 String getTaskEvents(long specKey, String taskName, long from, long to)
           
 String getTaskEvents(YSpecificationID specID, String taskName)
           
 String getTaskEvents(YSpecificationID specID, String taskName, long from, long to)
           
 String getTaskStatistics(long specKey, String taskName)
           
 String getTaskStatistics(long specKey, String taskName, long from, long to)
           
 String getTaskStatistics(YSpecificationID specID, String taskName)
           
 String getTaskStatistics(YSpecificationID specID, String taskName, long from, long to)
           
 String getTaskStatisticsForCase(String caseID)
           
 String getTaskStatisticsForCase(String caseID, long from, long to)
           
 String getTaskStatisticsForSpecification(YSpecificationID specID)
           
 String getTaskStatisticsForSpecification(YSpecificationID specID, long from, long to)
           
 String getTaskStatisticsForSpecificationSet(Set<YSpecificationID> specIDs)
           
 String getTaskStatisticsForSpecificationSet(Set<YSpecificationID> specIDs, long from, long to)
           
 String getTaskStatisticsForSpecificationUID(String id, long from, long to)
           
 String getTaskStatisticsForSpecificationURI(String uri, long from, long to)
           
 String getWorkItemAllocated(String itemID)
           
 String getWorkItemDurationsForParticipant(YSpecificationID specID, String taskName, String participantID)
           
 String getWorkItemEvents(String itemID, boolean fullName)
           
 String getWorkItemEvents(String itemID, boolean fullName, long from, long to)
           
 String getWorkItemOffered(String itemID)
           
 String getWorkItemStarted(String itemID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LogMiner getInstance()

getWorkItemDurationsForParticipant

public String getWorkItemDurationsForParticipant(YSpecificationID specID,
                                                 String taskName,
                                                 String participantID)
Parameters:
specID - the specification id to get the case eventids for
Returns:
the set of all case ids for the specID passed

getAllResourceEvents

public String getAllResourceEvents()

getCaseEvents

public String getCaseEvents(String caseID)

getCaseEvents

public String getCaseEvents(String caseID,
                            long from,
                            long to)

getCaseEvent

public String getCaseEvent(String caseID,
                           boolean launch)

getTaskEvents

public String getTaskEvents(long specKey,
                            String taskName,
                            long from,
                            long to)

getTaskEvents

public String getTaskEvents(long specKey,
                            String taskName)

getTaskEvents

public String getTaskEvents(YSpecificationID specID,
                            String taskName,
                            long from,
                            long to)

getTaskEvents

public String getTaskEvents(YSpecificationID specID,
                            String taskName)

getWorkItemEvents

public String getWorkItemEvents(String itemID,
                                boolean fullName)

getWorkItemEvents

public String getWorkItemEvents(String itemID,
                                boolean fullName,
                                long from,
                                long to)

getCaseStartedBy

public String getCaseStartedBy(String caseID)

getParticipantHistory

public String getParticipantHistory(String pid)

getParticipantHistory

public String getParticipantHistory(String pid,
                                    long from,
                                    long to)

getParticipantHistoryForEvent

public String getParticipantHistoryForEvent(String pid,
                                            EventLogger.event eventType)

getParticipantHistoryForEvent

public String getParticipantHistoryForEvent(String pid,
                                            EventLogger.event eventType,
                                            long from,
                                            long to)

getResourceHistory

public String getResourceHistory(String id)

getResourceHistory

public String getResourceHistory(String id,
                                 long from,
                                 long to)

getResourceHistoryForEvent

public String getResourceHistoryForEvent(String id,
                                         EventLogger.event eventType)

getResourceHistoryForEvent

public String getResourceHistoryForEvent(String id,
                                         EventLogger.event eventType,
                                         long from,
                                         long to)

getWorkItemOffered

public String getWorkItemOffered(String itemID)

getWorkItemAllocated

public String getWorkItemAllocated(String itemID)

getWorkItemStarted

public String getWorkItemStarted(String itemID)

getCaseHistoryInvolvingParticipant

public String getCaseHistoryInvolvingParticipant(String pid)

getCaseHistoryInvolvingParticipant

public String getCaseHistoryInvolvingParticipant(String pid,
                                                 long from,
                                                 long to)

getSpecificationEventsByURI

public String getSpecificationEventsByURI(String uri,
                                          long from,
                                          long to)

getSpecificationEventsByID

public String getSpecificationEventsByID(String id,
                                         long from,
                                         long to)

getSpecificationEvents

public String getSpecificationEvents(Set<YSpecificationID> specIDs)

getSpecificationEvents

public String getSpecificationEvents(Set<YSpecificationID> specIDs,
                                     long from,
                                     long to)

getSpecificationEvents

public String getSpecificationEvents(YSpecificationID specID)

getSpecificationEvents

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

getSpecificationIdentifiers

public String getSpecificationIdentifiers(String keyStr)

getSpecificationXESLog

public String getSpecificationXESLog(YSpecificationID specid)

getMergedXESLog

public String getMergedXESLog(YSpecificationID specid)

getMergedXESLog

public String getMergedXESLog(YSpecificationID specid,
                              boolean withData)

getSpecificationStatistics

public String getSpecificationStatistics(YSpecificationID specID)

getSpecificationStatistics

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

getTaskStatistics

public String getTaskStatistics(long specKey,
                                String taskName)

getTaskStatistics

public String getTaskStatistics(long specKey,
                                String taskName,
                                long from,
                                long to)

getTaskStatistics

public String getTaskStatistics(YSpecificationID specID,
                                String taskName)

getTaskStatistics

public String getTaskStatistics(YSpecificationID specID,
                                String taskName,
                                long from,
                                long to)

getTaskStatisticsForCase

public String getTaskStatisticsForCase(String caseID)

getTaskStatisticsForCase

public String getTaskStatisticsForCase(String caseID,
                                       long from,
                                       long to)

getTaskStatisticsForSpecification

public String getTaskStatisticsForSpecification(YSpecificationID specID)

getTaskStatisticsForSpecification

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

getTaskStatisticsForSpecificationURI

public String getTaskStatisticsForSpecificationURI(String uri,
                                                   long from,
                                                   long to)

getTaskStatisticsForSpecificationUID

public String getTaskStatisticsForSpecificationUID(String id,
                                                   long from,
                                                   long to)

getTaskStatisticsForSpecificationSet

public String getTaskStatisticsForSpecificationSet(Set<YSpecificationID> specIDs,
                                                   long from,
                                                   long to)

getTaskStatisticsForSpecificationSet

public String getTaskStatisticsForSpecificationSet(Set<YSpecificationID> specIDs)

getLastBusyOrReleaseEvents

public List getLastBusyOrReleaseEvents(String resourceID)

getBusyResources

public List getBusyResources(String itemID)

getBusyResourcesForCase

public List getBusyResourcesForCase(String caseID)

getBusyItemIDsForCase

public Set<String> getBusyItemIDsForCase(String caseID)


Copyright © 2004-2012 The YAWL Foundation.