public class InterfaceB_EngineBasedClient extends Interface_Client implements ObserverGateway
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.logging.log4j.Logger |
_logger |
| Constructor and Description |
|---|
InterfaceB_EngineBasedClient() |
| 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 the cancellation of a case
|
void |
announceCaseCompletion(java.util.Set<YAWLServiceReference> services,
YIdentifier caseID,
Document caseData)
Called by engine to announce when a case is complete.
|
void |
announceCaseCompletion(YAWLServiceReference yawlService,
YIdentifier caseID,
Document caseData)
Called by engine to announce when a case is complete.
|
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 the deadlock of a case
|
void |
announceEngineInitialised(java.util.Set<YAWLServiceReference> services,
int maxWaitSeconds)
Called by the engine when it has completed initialisation and is running
|
void |
announceFiredWorkItem(YAnnouncement announcement)
PRE: The work item is enabled.
|
void |
announceTimerExpiry(YAnnouncement announcement)
Announces a workitem timer expiry
|
void |
announceWorkItemStatusChange(java.util.Set<YAWLServiceReference> services,
YWorkItem workItem,
YWorkItemStatus oldStatus,
YWorkItemStatus newStatus)
Notify of a change of status for a work item.
|
void |
cancelWorkItem(YAWLServiceReference yawlService,
YWorkItem workItem)
Announces work item cancellation to the YAWL Service.
|
YParameter[] |
getRequiredParamsForService(YAWLServiceReference yawlService)
Returns an array of YParameter objects that describe the YAWL service
being referenced.
|
java.lang.String |
getScheme()
Indicates which protocol this shim services.
|
void |
shutdown()
Called by the engine to announce shutdown of the engine's servlet container
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successfulpublic java.lang.String getScheme()
getScheme in interface ObserverGatewaypublic void announceFiredWorkItem(YAnnouncement announcement)
announceFiredWorkItem in interface ObserverGatewayannouncement - public void announceCancelledWorkItem(YAnnouncement announcement)
ObserverGatewayannounceCancelledWorkItem in interface ObserverGatewayannouncement - the work item descriptorspublic void cancelWorkItem(YAWLServiceReference yawlService, YWorkItem workItem)
yawlService - the YAWL service reference.workItem - the work item to cancel.public void announceTimerExpiry(YAnnouncement announcement)
announceTimerExpiry in interface ObserverGatewayannouncement - the yawl service reference.public void announceCaseSuspended(java.util.Set<YAWLServiceReference> services, YIdentifier caseID)
announceCaseSuspended 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)
announceCaseSuspending 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)
announceCaseResumption 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)
announceWorkItemStatusChange in interface ObserverGatewayworkItem - that has changedoldStatus - previous statusnewStatus - new statusservices - the set of services currently registered with the enginepublic void announceCaseStarted(java.util.Set<YAWLServiceReference> services, YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
announceCaseStarted 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 announceCaseCompletion(java.util.Set<YAWLServiceReference> services, YIdentifier caseID, Document caseData)
announceCaseCompletion in interface ObserverGatewaycaseID - the case that completedcaseData - the output data of the caseservices - the set of services currently registered with the enginepublic void announceCaseCompletion(YAWLServiceReference yawlService, YIdentifier caseID, Document caseData)
announceCaseCompletion in interface ObserverGatewayyawlService - the yawl servicecaseID - the case that completedcaseData - the output data of the casepublic void announceEngineInitialised(java.util.Set<YAWLServiceReference> services, int maxWaitSeconds)
announceEngineInitialised in interface ObserverGatewayservices - a set of custom services to receive the announcementmaxWaitSeconds - the maximum seconds to wait for services to be contactablepublic void announceCaseCancellation(java.util.Set<YAWLServiceReference> services, YIdentifier id)
announceCaseCancellation in interface ObserverGatewayservices - a set of custom services to receive the announcementid - the case id of the cancelled casepublic void announceDeadlock(java.util.Set<YAWLServiceReference> services, YIdentifier id, java.util.Set<YTask> tasks)
announceDeadlock in interface ObserverGatewayservices - a set of custom services to receive the announcementid - the case id of the deadlocked casetasks - the deadlocked taskspublic void shutdown()
shutdown in interface ObserverGatewaypublic YParameter[] getRequiredParamsForService(YAWLServiceReference yawlService) throws java.io.IOException, JDOMException
yawlService - the YAWL service reference.java.io.IOException - if connection problemJDOMException - if XML content problem.Copyright © 2004-2014 The YAWL Foundation.