public interface InterfaceAManagement
| Modifier and Type | Method and Description |
|---|---|
boolean |
addExternalClient(YExternalClient client) |
java.util.List<YSpecificationID> |
addSpecifications(java.lang.String specificationStr,
boolean ignoreErors,
YVerificationHandler errorMessages)
Loads a process specification into the engine from an XML definition file created by the YAWL Designer.
|
void |
addYawlService(YAWLServiceReference yawlService)
Loads a YAWL service into the engine.
|
void |
cancelCase(YIdentifier id)
Cancel the execution of a case.
|
void |
dump()
Invokes a diagnostic dump of the engine's internal tables.
|
AnnouncementContext |
getAnnouncementContext() |
YAnnouncer |
getAnnouncer() |
YIdentifier |
getCaseID(java.lang.String caseIDStr)
Returns the internal engine identifier for a case.
|
java.util.Set<YIdentifier> |
getCasesForSpecification(YSpecificationID specID)
Given a process specification id return the cases that are its running
instances.
|
YEngine.Status |
getEngineStatus() |
YExternalClient |
getExternalClient(java.lang.String name) |
YSpecification |
getLatestSpecification(java.lang.String id)
Returns the process specification identified by its ID.
|
java.util.Set<YSpecificationID> |
getLoadedSpecificationIDs() |
java.lang.String |
getLoadStatus(YSpecificationID specID)
Indicates the load status of the supplied specification ID.
|
YSpecification |
getProcessDefinition(YSpecificationID specID)
Returns the specification for a loaded specification via the supplied specification ID.
|
YAWLServiceReference |
getRegisteredYawlService(java.lang.String yawlServiceID) |
YSpecification |
getSpecification(YSpecificationID specID) |
YSpecification |
getSpecificationForCase(YIdentifier caseID) |
java.lang.String |
getStateForCase(YIdentifier caseID)
Returns the state for a case.
|
java.lang.String |
getStateTextForCase(YIdentifier caseID)
Returns the text description for the state that a case is currently in.
|
java.util.Set |
getUsers()
Returns a set of users currently loaded within the engine.
|
boolean |
loadSpecification(YSpecification spec) |
int |
reannounceEnabledWorkItems()
Causes the engine to re-announce all workitems which are in an "enabled" state.
|
int |
reannounceExecutingWorkItems()
Causes the engine to re-announce all workitems which are in an "executing" state.
|
int |
reannounceFiredWorkItems()
Causes the engine to re-announce all workitems which are in an "fired" state.
|
void |
reannounceWorkItem(YWorkItem workItem)
Causes the engine to re-announce a specific workitem regardless of state.
|
void |
registerInterfaceAClient(InterfaceAManagementObserver observer)
Register an InterfaceA management client with the engine in order to recieve callbacks.
|
YAWLServiceReference |
removeYawlService(java.lang.String serviceURI)
Removes a YAWL service from the engine.
|
void |
resumeCase(YIdentifier id)
Resumes execution of a case.
|
void |
setEngineStatus(YEngine.Status engineStatus) |
void |
storeObject(java.lang.Object object)
Stores an object within the engine's persistent storage area.
|
void |
suspendCase(YIdentifier id)
Suspends execution of a case.
|
void |
unloadSpecification(YSpecificationID specID)
Unloads a specification from the engine.
|
void registerInterfaceAClient(InterfaceAManagementObserver observer)
observer - java.util.List<YSpecificationID> addSpecifications(java.lang.String specificationStr, boolean ignoreErors, YVerificationHandler errorMessages) throws JDOMException, java.io.IOException, YPersistenceException
specificationStr - ignoreErors - errorMessages - JDOMExceptionjava.io.IOExceptionYPersistenceExceptionboolean loadSpecification(YSpecification spec)
java.util.Set<YSpecificationID> getLoadedSpecificationIDs() throws YPersistenceException
YPersistenceExceptionYSpecification getLatestSpecification(java.lang.String id)
The process must have been loaded into the engine either when it initialised (using persisted specifications held in the database), or specifications added during the lifetime of the current engine instance. Null is returned if the process ID requested is not found in the engines internal cache. Further, this returns the newest version of the specification running.
id - YSpecification getSpecification(YSpecificationID specID)
YSpecification getSpecificationForCase(YIdentifier caseID)
void unloadSpecification(YSpecificationID specID) throws YStateException, YPersistenceException
specID - YStateExceptionYPersistenceExceptionjava.util.Set<YIdentifier> getCasesForSpecification(YSpecificationID specID)
specID - the process specification id string.YIdentifier getCaseID(java.lang.String caseIDStr) throws YPersistenceException
caseIDStr - YPersistenceExceptionjava.lang.String getStateTextForCase(YIdentifier caseID) throws YPersistenceException
caseID - YPersistenceExceptionjava.lang.String getStateForCase(YIdentifier caseID) throws YPersistenceException
caseID - YPersistenceExceptionvoid cancelCase(YIdentifier id) throws YPersistenceException, YEngineStateException
id - YPersistenceExceptionYEngineStateExceptionvoid suspendCase(YIdentifier id) throws YPersistenceException, YStateException
id - YPersistenceExceptionYStateExceptionvoid resumeCase(YIdentifier id) throws YPersistenceException, YStateException
id - YPersistenceExceptionYStateExceptionjava.util.Set getUsers()
YExternalClient getExternalClient(java.lang.String name)
boolean addExternalClient(YExternalClient client) throws YPersistenceException
YPersistenceExceptionYAWLServiceReference getRegisteredYawlService(java.lang.String yawlServiceID)
void addYawlService(YAWLServiceReference yawlService) throws YPersistenceException
yawlService - YPersistenceExceptionYAWLServiceReference removeYawlService(java.lang.String serviceURI) throws YPersistenceException
serviceURI - YPersistenceExceptionjava.lang.String getLoadStatus(YSpecificationID specID)
specID - int reannounceEnabledWorkItems()
throws YStateException
YStateExceptionint reannounceExecutingWorkItems()
throws YStateException
YStateExceptionint reannounceFiredWorkItems()
throws YStateException
YStateExceptionvoid reannounceWorkItem(YWorkItem workItem) throws YStateException
Note: This interface current;y only supported workitems in the following states:
YStateExceptionYSpecification getProcessDefinition(YSpecificationID specID)
specID - void storeObject(java.lang.Object object)
throws YPersistenceException
object - YPersistenceExceptionvoid dump()
void setEngineStatus(YEngine.Status engineStatus)
YEngine.Status getEngineStatus()
AnnouncementContext getAnnouncementContext()
YAnnouncer getAnnouncer()
Copyright © 2004-2014 The YAWL Foundation.