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, successful
public java.lang.String getScheme()
ObserverGateway
getScheme
in interface ObserverGateway
public void announceCaseCompletion(YAWLServiceReference yawlService, YIdentifier caseID, Document caseData)
ObserverGateway
announceCaseCompletion
in interface ObserverGateway
yawlService
- 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)
ObserverGateway
announceCaseCompletion
in interface ObserverGateway
services
- 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)
ObserverGateway
announceCaseCancellation
in interface ObserverGateway
services
- the set of services currently registered with the engineid
- the identifier of the cancelled casepublic void announceFiredWorkItem(YAnnouncement announcement)
ObserverGateway
announceFiredWorkItem
in interface ObserverGateway
announcement
- the work item descriptorspublic void announceCancelledWorkItem(YAnnouncement announcement)
ObserverGateway
announceCancelledWorkItem
in interface ObserverGateway
announcement
- the work item descriptorspublic void announceTimerExpiry(YAnnouncement announcement)
ObserverGateway
announceTimerExpiry
in interface ObserverGateway
announcement
- the work item descriptorspublic void announceCaseStarted(java.util.Set<YAWLServiceReference> services, YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
ObserverGateway
announceCaseStarted
in interface ObserverGateway
services
- 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)
ObserverGateway
announceCaseSuspended
in interface ObserverGateway
services
- the set of services currently registered with the enginecaseID
- the identifier of the suspended casepublic void announceCaseSuspending(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
ObserverGateway
announceCaseSuspending
in interface ObserverGateway
services
- the set of services currently registered with the enginecaseID
- the identifier of the suspending casepublic void announceCaseResumption(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
ObserverGateway
announceCaseResumption
in interface ObserverGateway
services
- 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)
ObserverGateway
announceWorkItemStatusChange
in interface ObserverGateway
services
- 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)
ObserverGateway
announceEngineInitialised
in interface ObserverGateway
services
- 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)
ObserverGateway
announceDeadlock
in interface ObserverGateway
services
- the set of services currently registered with the engineid
- the identifier of the deadlocked casetasks
- the set of deadlocked taskspublic void shutdown()
ObserverGateway
shutdown
in interface ObserverGateway
Copyright © 2004-2014 The YAWL Foundation.