public class CaseCompletedObserver extends Interface_Client implements ObserverGateway
| Constructor and Description | 
|---|
| CaseCompletedObserver() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | announceCancelledWorkItem(YAnnouncement announcement)Called by the engine when a previously posted workitem has been cancelled. | 
| void | announceCaseCancellation(java.util.Set<YAWLServiceReference> services,
                        YIdentifier id)Called by the engine to announce a case has been cancelled. | 
| void | announceCaseCompletion(java.util.Set<YAWLServiceReference> services,
                      YIdentifier caseID,
                      Document caseData)Called by engine to announce when a case is complete and a completion
 observer was not specified at case launch. | 
| void | announceCaseCompletion(YAWLServiceReference yawlService,
                      YIdentifier caseID,
                      Document caseData)Called by engine when a case is complete and a completion observer was
 specified at case launch. | 
| void | announceCaseResumption(java.util.Set<YAWLServiceReference> services,
                      YIdentifier caseID)Called by the engine to announce when a case resumes from a previous 'suspending'
 or 'suspended' state. | 
| void | announceCaseStarted(java.util.Set<YAWLServiceReference> services,
                   YSpecificationID specID,
                   YIdentifier caseID,
                   java.lang.String launchingService,
                   boolean delayed)Called by engine to announce when a case has commenced. | 
| void | announceCaseSuspended(java.util.Set<YAWLServiceReference> services,
                     YIdentifier caseID)Called by the engine to announce when a case suspends (i.e. | 
| void | announceCaseSuspending(java.util.Set<YAWLServiceReference> services,
                      YIdentifier caseID)Called by the engine to announce when a case starts to suspends (i.e. | 
| void | announceDeadlock(java.util.Set<YAWLServiceReference> services,
                YIdentifier id,
                java.util.Set<YTask> tasks)Called by the engine to announce that a case has deadlocked | 
| void | announceEngineInitialised(java.util.Set<YAWLServiceReference> services,
                         int maxWaitSeconds)Called by the engine to notify that it has completed initialisation and is running. | 
| void | announceFiredWorkItem(YAnnouncement announcement)Called by the engine when a new workitem gets enabled. | 
| void | announceTimerExpiry(YAnnouncement announcement)Called by the engine when a timer for a workitem expires. | 
| void | announceWorkItemStatusChange(java.util.Set<YAWLServiceReference> services,
                            YWorkItem workItem,
                            YWorkItemStatus oldStatus,
                            YWorkItemStatus newStatus)Called by the engine to notify of a change of status for a work item. | 
| java.lang.String | getScheme()Gets the scheme part of the url of an implementing gateway. | 
| void | shutdown()Called when the Engine is shutdown (servlet destroyed); the observer gateway should
 to do its own finalisation processing. | 
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successfulpublic java.lang.String getScheme()
ObserverGatewaygetScheme in interface ObserverGatewaypublic void announceCaseCompletion(YAWLServiceReference yawlService, YIdentifier caseID, Document caseData)
ObserverGatewayannounceCaseCompletion in interface ObserverGatewayyawlService - the yawl service nominated as the completion observercaseID - the case that completedcaseData - the output data of the casepublic void announceCaseCompletion(java.util.Set<YAWLServiceReference> services, YIdentifier caseID, Document caseData)
ObserverGatewayannounceCaseCompletion in interface ObserverGatewayservices - the set of services currently registered with the enginecaseID - the case that completedcaseData - the output data of the casepublic void announceCaseCancellation(java.util.Set<YAWLServiceReference> services, YIdentifier id)
ObserverGatewayannounceCaseCancellation in interface ObserverGatewayservices - the set of services currently registered with the engineid - the identifier of the cancelled casepublic void announceFiredWorkItem(YAnnouncement announcement)
ObserverGatewayannounceFiredWorkItem in interface ObserverGatewayannouncement - the work item descriptorspublic void announceCancelledWorkItem(YAnnouncement announcement)
ObserverGatewayannounceCancelledWorkItem in interface ObserverGatewayannouncement - the work item descriptorspublic void announceTimerExpiry(YAnnouncement announcement)
ObserverGatewayannounceTimerExpiry in interface ObserverGatewayannouncement - the work item descriptorspublic void announceCaseStarted(java.util.Set<YAWLServiceReference> services, YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
ObserverGatewayannounceCaseStarted in interface ObserverGatewayservices - the set of registered custom servicesspecID - the specification id of the started casecaseID - the case that has startedlaunchingService - the service that started the casedelayed - true if this is a delayed case launch, false if immediatepublic void announceCaseSuspended(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
ObserverGatewayannounceCaseSuspended in interface ObserverGatewayservices - the set of services currently registered with the enginecaseID - the identifier of the suspended casepublic void announceCaseSuspending(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
ObserverGatewayannounceCaseSuspending in interface ObserverGatewayservices - the set of services currently registered with the enginecaseID - the identifier of the suspending casepublic void announceCaseResumption(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
ObserverGatewayannounceCaseResumption in interface ObserverGatewayservices - the set of services currently registered with the enginecaseID - the identifier of the suspended casepublic void announceWorkItemStatusChange(java.util.Set<YAWLServiceReference> services, YWorkItem workItem, YWorkItemStatus oldStatus, YWorkItemStatus newStatus)
ObserverGatewayannounceWorkItemStatusChange in interface ObserverGatewayservices - the set of services currently registered with the engineworkItem - that has changedoldStatus - previous statusnewStatus - new statuspublic void announceEngineInitialised(java.util.Set<YAWLServiceReference> services, int maxWaitSeconds)
ObserverGatewayannounceEngineInitialised in interface ObserverGatewayservices - the set of services currently registered with the enginemaxWaitSeconds - the maximum amount of time to wait attempting to
 contact the services managed by the gateway before giving uppublic void announceDeadlock(java.util.Set<YAWLServiceReference> services, YIdentifier id, java.util.Set<YTask> tasks)
ObserverGatewayannounceDeadlock in interface ObserverGatewayservices - the set of services currently registered with the engineid - the identifier of the deadlocked casetasks - the set of deadlocked taskspublic void shutdown()
ObserverGatewayshutdown in interface ObserverGatewayCopyright © 2004-2014 The YAWL Foundation.