public interface ObserverGateway
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.
|
java.lang.String getScheme()
void announceFiredWorkItem(YAnnouncement announcement)
announcement
- the work item descriptorsvoid announceCancelledWorkItem(YAnnouncement announcement)
announcement
- the work item descriptorsvoid announceTimerExpiry(YAnnouncement announcement)
announcement
- the work item descriptorsvoid announceCaseCompletion(YAWLServiceReference yawlService, YIdentifier caseID, Document caseData)
yawlService
- the yawl service nominated as the completion observercaseID
- the case that completedcaseData
- the output data of the casevoid announceCaseStarted(java.util.Set<YAWLServiceReference> services, YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
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 immediatevoid announceCaseCompletion(java.util.Set<YAWLServiceReference> services, YIdentifier caseID, Document caseData)
services
- the set of services currently registered with the enginecaseID
- the case that completedcaseData
- the output data of the casevoid announceCaseSuspended(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
services
- the set of services currently registered with the enginecaseID
- the identifier of the suspended casevoid announceCaseSuspending(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
services
- the set of services currently registered with the enginecaseID
- the identifier of the suspending casevoid announceCaseResumption(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
services
- the set of services currently registered with the enginecaseID
- the identifier of the suspended casevoid announceWorkItemStatusChange(java.util.Set<YAWLServiceReference> services, YWorkItem workItem, YWorkItemStatus oldStatus, YWorkItemStatus newStatus)
services
- the set of services currently registered with the engineworkItem
- that has changedoldStatus
- previous statusnewStatus
- new statusvoid announceEngineInitialised(java.util.Set<YAWLServiceReference> services, int maxWaitSeconds)
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 upvoid announceCaseCancellation(java.util.Set<YAWLServiceReference> services, YIdentifier id)
services
- the set of services currently registered with the engineid
- the identifier of the cancelled casevoid announceDeadlock(java.util.Set<YAWLServiceReference> services, YIdentifier id, java.util.Set<YTask> tasks)
services
- the set of services currently registered with the engineid
- the identifier of the deadlocked casetasks
- the set of deadlocked tasksvoid shutdown()
Copyright © 2004-2014 The YAWL Foundation.