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
- JDOMException
java.io.IOException
YPersistenceException
boolean loadSpecification(YSpecification spec)
java.util.Set<YSpecificationID> getLoadedSpecificationIDs() throws YPersistenceException
YPersistenceException
YSpecification 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
- YStateException
YPersistenceException
java.util.Set<YIdentifier> getCasesForSpecification(YSpecificationID specID)
specID
- the process specification id string.YIdentifier getCaseID(java.lang.String caseIDStr) throws YPersistenceException
caseIDStr
- YPersistenceException
java.lang.String getStateTextForCase(YIdentifier caseID) throws YPersistenceException
caseID
- YPersistenceException
java.lang.String getStateForCase(YIdentifier caseID) throws YPersistenceException
caseID
- YPersistenceException
void cancelCase(YIdentifier id) throws YPersistenceException, YEngineStateException
id
- YPersistenceException
YEngineStateException
void suspendCase(YIdentifier id) throws YPersistenceException, YStateException
id
- YPersistenceException
YStateException
void resumeCase(YIdentifier id) throws YPersistenceException, YStateException
id
- YPersistenceException
YStateException
java.util.Set getUsers()
YExternalClient getExternalClient(java.lang.String name)
boolean addExternalClient(YExternalClient client) throws YPersistenceException
YPersistenceException
YAWLServiceReference getRegisteredYawlService(java.lang.String yawlServiceID)
void addYawlService(YAWLServiceReference yawlService) throws YPersistenceException
yawlService
- YPersistenceException
YAWLServiceReference removeYawlService(java.lang.String serviceURI) throws YPersistenceException
serviceURI
- YPersistenceException
java.lang.String getLoadStatus(YSpecificationID specID)
specID
- int reannounceEnabledWorkItems() throws YStateException
YStateException
int reannounceExecutingWorkItems() throws YStateException
YStateException
int reannounceFiredWorkItems() throws YStateException
YStateException
void reannounceWorkItem(YWorkItem workItem) throws YStateException
Note: This interface current;y only supported workitems in the following states:
YStateException
YSpecification getProcessDefinition(YSpecificationID specID)
specID
- void storeObject(java.lang.Object object) throws YPersistenceException
object
- YPersistenceException
void dump()
void setEngineStatus(YEngine.Status engineStatus)
YEngine.Status getEngineStatus()
AnnouncementContext getAnnouncementContext()
YAnnouncer getAnnouncer()
Copyright © 2004-2014 The YAWL Foundation.