public class ObserverGatewayController
extends java.lang.Object
| Constructor and Description | 
|---|
| ObserverGatewayController()Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | announce(java.util.Set<YAnnouncement> announcements)Announce a set of work item notifications to the relevant observers | 
| protected void | announce(YAnnouncement announcement)Announce a work item notification to the relevant observers | 
| void | notifyCaseCancellation(java.util.Set<YAWLServiceReference> services,
                      YIdentifier id)Notify environment that the engine has cancelled a case | 
| void | notifyCaseCompletion(java.util.Set<YAWLServiceReference> services,
                    YIdentifier caseID,
                    Document caseData)Notify a case completion to all registered gateways. | 
| void | notifyCaseCompletion(YAWLServiceReference service,
                    YIdentifier caseID,
                    Document caseData)Notify the case completion to a particular service that has registered as a
 completion observer for this case when the case was launched. | 
| void | notifyCaseResumption(YIdentifier caseID,
                    java.util.Set<YAWLServiceReference> services)Notify the case is resumption | 
| void | notifyCaseStarting(java.util.Set<YAWLServiceReference> services,
                  YSpecificationID specID,
                  YIdentifier caseID,
                  java.lang.String launchingService,
                  boolean delayed)Notify a case completion to all registered gateways. | 
| void | notifyCaseSuspended(YIdentifier caseID,
                   java.util.Set<YAWLServiceReference> services)Notify the case is suspended | 
| void | notifyCaseSuspending(YIdentifier caseID,
                    java.util.Set<YAWLServiceReference> services)Notify the case is suspending | 
| void | notifyDeadlock(java.util.Set<YAWLServiceReference> services,
              YIdentifier id,
              java.util.Set<YTask> tasks)Notify environment that a case has deadlocked | 
| void | notifyEngineInitialised(java.util.Set<YAWLServiceReference> services,
                       int maxWaitSeconds)Notify the engine has completed initialisation and is running | 
| void | notifyWorkItemStatusChange(java.util.Set<YAWLServiceReference> services,
                          YWorkItem workItem,
                          YWorkItemStatus oldStatus,
                          YWorkItemStatus newStatus)Notify of a change of status for a work item to all registered gateways. | 
| void | shutdownObserverGateways()Invoke finalisation processing on all observer gateways and the
 ExecutorService used to execute calls to them (called when
 the Engine servlet is being destroyed). | 
protected void announce(java.util.Set<YAnnouncement> announcements)
announcements - the Set of announcementsprotected void announce(YAnnouncement announcement)
announcement - the announcementpublic void notifyCaseCompletion(YAWLServiceReference service, YIdentifier caseID, Document caseData)
service - the service to notifycaseID - the completing case identifiercaseData - the final case data documentpublic void notifyCaseStarting(java.util.Set<YAWLServiceReference> services, YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
services - a set of the current engine-registered servicesspecID - the specification id for thestarted casecaseID - the completing case identifierlaunchingService - the service that launched the casedelayed - true if this is a delayed case launch, false if immediatepublic void notifyCaseCompletion(java.util.Set<YAWLServiceReference> services, YIdentifier caseID, Document caseData)
services - a set of the current engine-registered servicescaseID - the completing case identifiercaseData - the final case data documentpublic void notifyWorkItemStatusChange(java.util.Set<YAWLServiceReference> services, YWorkItem workItem, YWorkItemStatus oldStatus, YWorkItemStatus newStatus)
services - a set of the current engine-registered servicesworkItem - the work item that has changed statusoldStatus - previous statusnewStatus - new statuspublic void notifyCaseSuspending(YIdentifier caseID, java.util.Set<YAWLServiceReference> services)
caseID - the suspending case identifierservices - a set of the current engine-registered servicespublic void notifyCaseSuspended(YIdentifier caseID, java.util.Set<YAWLServiceReference> services)
caseID - the suspended case identifierservices - a set of the current engine-registered servicespublic void notifyCaseResumption(YIdentifier caseID, java.util.Set<YAWLServiceReference> services)
caseID - the resuming case identifierservices - a set of the current engine-registered servicespublic void notifyEngineInitialised(java.util.Set<YAWLServiceReference> services, int maxWaitSeconds)
services - all services registered with the enginemaxWaitSeconds - the maximum seconds to wait for services to be contactablepublic void notifyCaseCancellation(java.util.Set<YAWLServiceReference> services, YIdentifier id)
services - - all services registered with the engineid - - the case identifierpublic void notifyDeadlock(java.util.Set<YAWLServiceReference> services, YIdentifier id, java.util.Set<YTask> tasks)
services - - all services registered with the engineid - - the case identifiertasks - - the set of deadlocked taskspublic void shutdownObserverGateways()
Copyright © 2004-2014 The YAWL Foundation.