public class YAnnouncer
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
YAnnouncer(YEngine engine) |
Modifier and Type | Method and Description |
---|---|
protected void |
addInterfaceXListener(InterfaceX_EngineSideClient listener) |
protected void |
addInterfaceXListener(java.lang.String uri) |
void |
announceCancelledWorkItem(YWorkItem item)
Called by a workitem when it is cancelled.
|
protected void |
announceCaseCancellation(YIdentifier id,
java.util.Set<YAWLServiceReference> services)
Called by the engine when a case is cancelled.
|
protected void |
announceCaseCompletion(YAWLServiceReference service,
YIdentifier caseID,
Document caseData)
Called by a case's net runner when it completes.
|
protected void |
announceCaseResumption(YIdentifier id,
java.util.Set<YAWLServiceReference> services)
Called by the engine when a case has resumed from suspension.
|
protected void |
announceCaseStart(YSpecificationID specID,
YIdentifier caseID,
java.lang.String launchingService,
boolean delayed) |
protected void |
announceCaseSuspended(YIdentifier id,
java.util.Set<YAWLServiceReference> services)
Called by the engine when a case has suspended.
|
protected void |
announceCaseSuspending(YIdentifier id,
java.util.Set<YAWLServiceReference> services)
Called by the engine when a case is suspending.
|
protected void |
announceCheckCaseConstraints(YSpecificationID specID,
java.lang.String caseID,
java.lang.String data,
boolean preCheck) |
protected void |
announceCheckWorkItemConstraints(YWorkItem item,
Document data,
boolean preCheck) |
protected void |
announceDeadlock(YIdentifier caseID,
java.util.Set<YTask> tasks) |
protected void |
announceEngineInitialisationCompletion(java.util.Set<YAWLServiceReference> services,
int maxWaitSeconds)
Called by the engine when its initialisation is complete.
|
void |
announceTimerExpiryEvent(YWorkItem item)
Called by YWorkItemTimer when a work item's timer expires.
|
protected void |
announceTimeServiceExpiry(YWorkItem item,
java.util.List timeOutTaskIds) |
protected void |
announceToGateways(java.util.Set<YAnnouncement> announcements)
Called by the engine each time a net runner advances a case, resulting in the
enabling and/or cancelling of one or more work items.
|
protected void |
announceWorkItemStatusChange(YWorkItem item,
YWorkItemStatus oldStatus,
YWorkItemStatus newStatus)
Called by a workitem when it has a change of status.
|
protected YAnnouncement |
createAnnouncement(YAWLServiceReference ys,
YWorkItem item,
YEngineEvent event) |
protected YAnnouncement |
createAnnouncement(YWorkItem item,
YEngineEvent event) |
protected AnnouncementContext |
getAnnouncementContext() |
ObserverGatewayController |
getObserverGatewayController() |
protected boolean |
hasInterfaceXListeners() |
int |
reannounceEnabledWorkItems()
Causes the engine to re-announce all workitems which are in an "enabled" state.
|
protected int |
reannounceExecutingWorkItems()
Causes the engine to re-announce all workitems which are in an "executing" state.
|
protected int |
reannounceFiredWorkItems()
Causes the engine to re-announce all workitems which are in an "fired" state.
|
protected void |
reannounceWorkItem(YWorkItem workItem)
Causes the engine to re-announce a specific workitem regardless of state.
|
void |
registerInterfaceBObserverGateway(ObserverGateway gateway) |
void |
rejectAnnouncedEnabledTask(YWorkItem item) |
protected boolean |
removeInterfaceXListener(InterfaceX_EngineSideClient listener) |
protected boolean |
removeInterfaceXListener(java.lang.String uri) |
protected void |
shutdownInterfaceXListeners() |
protected void |
shutdownObserverGateways()
Called by the engine when it begins to shutdown.
|
protected YAnnouncer(YEngine engine)
public ObserverGatewayController getObserverGatewayController()
public void registerInterfaceBObserverGateway(ObserverGateway gateway) throws YAWLException
YAWLException
protected AnnouncementContext getAnnouncementContext()
protected void addInterfaceXListener(InterfaceX_EngineSideClient listener)
protected void addInterfaceXListener(java.lang.String uri)
protected boolean removeInterfaceXListener(InterfaceX_EngineSideClient listener)
protected boolean removeInterfaceXListener(java.lang.String uri)
protected boolean hasInterfaceXListeners()
protected void shutdownInterfaceXListeners()
protected void announceEngineInitialisationCompletion(java.util.Set<YAWLServiceReference> services, int maxWaitSeconds)
services
- the set of currently registered servicesmaxWaitSeconds
- timeout to announce to each service before giving upprotected void announceCaseCancellation(YIdentifier id, java.util.Set<YAWLServiceReference> services)
id
- the identifier of the cancelled caseservices
- the set of currently registered servicespublic void announceTimerExpiryEvent(YWorkItem item)
item
- the work item that has had its timer expireprotected void announceCaseSuspending(YIdentifier id, java.util.Set<YAWLServiceReference> services)
id
- the identifier of the suspending caseservices
- the set of currently registered servicesprotected void announceCaseSuspended(YIdentifier id, java.util.Set<YAWLServiceReference> services)
id
- the identifier of the suspended caseservices
- the set of currently registered servicesprotected void announceCaseResumption(YIdentifier id, java.util.Set<YAWLServiceReference> services)
id
- the identifier of the resumed caseservices
- the set of currently registered servicesprotected void announceCaseStart(YSpecificationID specID, YIdentifier caseID, java.lang.String launchingService, boolean delayed)
protected void announceCaseCompletion(YAWLServiceReference service, YIdentifier caseID, Document caseData)
service
- the name of the service or gateway to announce the case completion
to. If null, the event will be announced to all registered services and gatewayscaseID
- the identifier of the completed casecaseData
- the final output data for the caseprotected void announceWorkItemStatusChange(YWorkItem item, YWorkItemStatus oldStatus, YWorkItemStatus newStatus)
item
- the work item that has had a change of statusoldStatus
- the previous status of the work itemnewStatus
- the new status of the workitempublic void announceCancelledWorkItem(YWorkItem item)
item
- the work item that has had a change of statusprotected void shutdownObserverGateways()
protected void announceToGateways(java.util.Set<YAnnouncement> announcements)
announcements
- A set of work item enabling or cancellation eventsprotected YAnnouncement createAnnouncement(YAWLServiceReference ys, YWorkItem item, YEngineEvent event)
protected YAnnouncement createAnnouncement(YWorkItem item, YEngineEvent event)
public void rejectAnnouncedEnabledTask(YWorkItem item)
protected void announceCheckWorkItemConstraints(YWorkItem item, Document data, boolean preCheck)
protected void announceCheckCaseConstraints(YSpecificationID specID, java.lang.String caseID, java.lang.String data, boolean preCheck)
protected void announceTimeServiceExpiry(YWorkItem item, java.util.List timeOutTaskIds)
public int reannounceEnabledWorkItems() throws YStateException
YStateException
protected int reannounceExecutingWorkItems() throws YStateException
YStateException
protected int reannounceFiredWorkItems() throws YStateException
YStateException
protected void reannounceWorkItem(YWorkItem workItem) throws YStateException
YStateException
protected void announceDeadlock(YIdentifier caseID, java.util.Set<YTask> tasks)
Copyright © 2004-2014 The YAWL Foundation.