public class YEngine extends java.lang.Object implements InterfaceADesign, InterfaceAManagement, InterfaceBClient, InterfaceBInterop
| Modifier and Type | Class and Description | 
|---|---|
| static class  | YEngine.Status | 
| Modifier and Type | Field and Description | 
|---|---|
| protected YNetRunnerRepository | _netRunnerRepository | 
| protected static YPersistenceManager | _pmgr | 
| protected static YEngine | _thisInstance | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | YEngine()The Constructor - called from getInstance(). | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addExternalClient(YExternalClient client)Adds an external client credentials object to the engine. | 
| boolean | addInterfaceXListener(java.lang.String observerURI)sets the URI passed as an listener for exception events | 
| protected void | addRunner(YNetRunner runner)Adds a net runner instance to the engine caches. | 
| void | addRunner(YNetRunner runner,
         YSpecification specification)Adds a net runner instance to the engine caches. | 
| java.util.List<YSpecificationID> | addSpecifications(java.lang.String specStr,
                 boolean ignoreErrors,
                 YVerificationHandler verificationHandler)Adds the specification(s) (expressed as an xml string) to the engine | 
| void | addYawlService(YAWLServiceReference yawlService)Adds a YAWL service to the engine. | 
| java.lang.String | allocateCaseID()AJH: Public method which returns the next available caseID
 Note: This is only available with a non-persisting engine and is used
 to ascertain the case ID prior to launching a case (eg. | 
| boolean | canAddNewInstances(java.lang.String workItemID)Checks whether new dynamic workitem instances can be started for a task | 
| void | cancelCase(YIdentifier id)Deprecated. 
 use cancelCase(YIdentifier, String) | 
| void | cancelCase(YIdentifier caseID,
          java.lang.String serviceHandle)Cancels a running case. | 
| void | cancelWorkItem(YWorkItem workItem) | 
| void | checkElegibilityToAddInstances(java.lang.String workItemID)Determines whether or not a task will allow a dynamically
 created new instance to be created. | 
| void | checkEngineRunning() | 
| protected void | clearCaseFromPersistence(YIdentifier id)Clears a case from persistence | 
| void | completeWorkItem(YWorkItem workItem,
                java.lang.String data,
                java.lang.String logPredicate,
                WorkItemCompletion completionType)Completes the work item. | 
| YWorkItem | createNewInstance(YWorkItem workItem,
                 java.lang.String paramValueForMICreation)Creates a new work item instance when possible. | 
| void | deleteObject(java.lang.Object obj) | 
| void | demote() | 
| void | disableProcessLogging() | 
| void | dump()Invokes a diagnostic dump of the engine's internal tables. | 
| protected Element | formatCaseParams(java.lang.String paramStr,
                YSpecification spec) | 
| boolean | generateUIMetaData()Indicates if user interface metadata will be generated within a task's input XML doclet. | 
| java.util.Set<YWorkItem> | getAllWorkItems()Returns a set of all work items, regardless of state, from the engine. | 
| AnnouncementContext | getAnnouncementContext() | 
| YAnnouncer | getAnnouncer() | 
| java.util.Set<YWorkItem> | getAvailableWorkItems()Returns a set of all availkable workitems from the engine. | 
| YBuildProperties | getBuildProperties() | 
| java.lang.String | getCaseData(java.lang.String caseID)Returns an XML representation of the current net data of the case corresponding
 to caseID. | 
| YNetData | getCaseData(YIdentifier id) | 
| Document | getCaseDataDocument(java.lang.String id) | 
| 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. | 
| java.util.Set | getChildrenOfWorkItem(YWorkItem workItem) | 
| YAWLServiceReference | getDefaultWorklist() | 
| java.lang.String | getEngineClassesRootFilePath() | 
| YEngine.Status | getEngineStatus() | 
| YExternalClient | getExternalClient(java.lang.String name) | 
| java.util.Set<YExternalClient> | getExternalClients() | 
| java.lang.String | getHibernateStatistics() | 
| static YEngine | getInstance()Initialises the engine (if not already initialised) & returns the engine instance,
 using the default persistence flag. | 
| static YEngine | getInstance(boolean persisting) | 
| static YEngine | getInstance(boolean persisting,
           boolean gatherHbnStats) | 
| static YEngine | getInstance(boolean persisting,
           boolean gatherHbnStats,
           boolean redundantMode)Initialises the engine (if not already initialised) & returns the engine instance. | 
| InstanceCache | getInstanceCache() | 
| YSpecification | getLatestSpecification(java.lang.String key)Returns the latest loaded version of a specification identified by 'key' | 
| java.util.Set<YSpecificationID> | getLoadedSpecificationIDs()Provides the set of specification ids for specs loaded into the engine. | 
| java.lang.String | getLoadStatus(YSpecificationID specID)Indicates the load status of the supplied specification ID. | 
| java.lang.String | getNetData(java.lang.String caseID) | 
| YNetRunner | getNetRunner(YIdentifier identifier) | 
| YNetRunner | getNetRunner(YWorkItem workItem) | 
| YNetRunnerRepository | getNetRunnerRepository() | 
| java.lang.String | getNextCaseNbr() | 
| java.util.Map<java.lang.String,YParameter> | getParameters(YSpecificationID specID,
             java.lang.String taskID,
             boolean input) | 
| static YPersistenceManager | getPersistenceManager() | 
| YSpecification | getProcessDefinition(YSpecificationID specID)Returns the specification for a loaded specification via the supplied specification ID. | 
| YAWLServiceReference | getRegisteredYawlService(java.lang.String yawlServiceID) | 
| java.util.List<YNetRunner> | getRunnersForPrimaryCase(YIdentifier primaryCaseID)Returns a vector of all net runners for a top level caseID. | 
| java.util.List<YIdentifier> | getRunningCaseIDs()Returns a list of the YIdentifiers objects for running cases. | 
| java.util.Map<YSpecificationID,java.util.List<YIdentifier>> | getRunningCaseMap()Gets the complete map of all running case ids, grouped by specification id | 
| YSessionCache | getSessionCache() | 
| YSpecification | getSpecification(YSpecificationID specID) | 
| java.lang.String | getSpecificationDataSchema(YSpecificationID specID) | 
| YSpecification | getSpecificationForCase(YIdentifier caseID) | 
| Element | getStartingDataSnapshot(java.lang.String itemID) | 
| 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. | 
| YTask | getTaskDefinition(YSpecificationID specID,
                 java.lang.String taskID)Returns the task definition, not the task instance. | 
| java.util.Set | getUsers()Returns a set of users currently loaded within the engine. | 
| YWorkItem | getWorkItem(java.lang.String workItemID) | 
| YWorkItemRepository | getWorkItemRepository() | 
| java.util.Set<YAWLServiceReference> | getYAWLServices()Returns a set of YAWL services registered in the engine. | 
| void | initBuildProperties(java.io.InputStream stream) | 
| protected static void | initialise(YPersistenceManager pmgr,
          boolean persisting,
          boolean gatherHbnStats,
          boolean redundantMode) | 
| void | initialised(int maxWaitSeconds) | 
| boolean | isGenericAdminAllowed() | 
| boolean | isHibernateStatisticsEnabled() | 
| static boolean | isPersisting()Indicates if persistence is enabled. | 
| static boolean | isRunning()Checks if the engine is currently running | 
| java.lang.String | launchCase(YSpecificationID specID,
          java.lang.String caseParams,
          java.net.URI completionObserver,
          java.lang.String caseID,
          YLogDataItemList logData,
          java.lang.String serviceHandle,
          boolean delayed)Starts an instance of a specification (known as a 'case') within the engine. | 
| java.lang.String | launchCase(YSpecificationID specID,
          java.lang.String caseParams,
          java.net.URI completionObserver,
          YLogDataItemList logData)Starts an instance of a specification (known as a 'case') within the engine. | 
| java.lang.String | launchCase(YSpecificationID specID,
          java.lang.String caseParams,
          java.net.URI completionObserver,
          YLogDataItemList logData,
          java.lang.String serviceHandle) | 
| protected java.util.Set<YClient> | loadDefaultClients()Loads the logon accounts for the standard client apps and services from a
 properties file on startup when they have not previously been persisted (ie. | 
| boolean | loadSpecification(YSpecification spec)Loads a specification | 
| void | promote() | 
| 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. | 
| void | registerInterfaceBObserver(InterfaceBClientObserver observer)Register an InterfaceB client with the engine in order to receive callbacks. | 
| void | registerInterfaceBObserverGateway(ObserverGateway gateway)Registers an InterfaceB Observer Gateway with the engine in order to receive callbacks. | 
| protected void | removeCaseFromCaches(YIdentifier caseID)Finalises a case completion. | 
| YExternalClient | removeExternalClient(java.lang.String clientName) | 
| boolean | removeInterfaceXListener(java.lang.String uri)removes an exception event listener | 
| YAWLServiceReference | removeYawlService(java.lang.String serviceURI)Removes a YAWL service from the engine. | 
| void | resumeCase(YIdentifier id)Resumes execution of a case. | 
| void | rollbackWorkItem(java.lang.String workItemID) | 
| void | setAllowAdminID(boolean allow) | 
| void | setDefaultWorklist(java.lang.String paramStr)Sets the custom service that will serve as the default worklist. | 
| void | setEngineClassesRootFilePath(java.lang.String path) | 
| void | setEngineStatus(YEngine.Status status) | 
| void | setGenerateUIMetaData(boolean generate)Indicate if user interface metadata is to be generated within a task's input XML doclet. | 
| void | setHibernateStatisticsEnabled(boolean enabled) | 
| void | shutdown() | 
| YWorkItem | skipWorkItem(YWorkItem workItem,
            YClient client) | 
| protected YIdentifier | startCase(YSpecificationID specID,
         java.lang.String caseParams,
         java.net.URI completionObserver,
         java.lang.String caseID,
         YLogDataItemList logData,
         java.lang.String serviceRef,
         boolean delayed) | 
| YWorkItem | startWorkItem(java.lang.String itemID,
             YClient client) | 
| YWorkItem | startWorkItem(YWorkItem workItem,
             YClient client)Starts a work item. | 
| void | storeObject(java.lang.Object obj)Public interface to allow engine clients to ask the engine to store an object reference in its
 persistent storage. | 
| void | suspendCase(YIdentifier caseID)Suspends the execution of a case - currently only called from YAdminGUI. | 
| YWorkItem | suspendWorkItem(java.lang.String workItemID) | 
| void | unloadSpecification(YSpecificationID specID)Removes a previously loaded specification from the engine | 
| YWorkItem | unsuspendWorkItem(java.lang.String workItemID) | 
| boolean | updateCaseData(java.lang.String idStr,
              java.lang.String data)updates the case data with the data passed after completion of an exception handler | 
| boolean | updateExternalClient(java.lang.String id,
                    java.lang.String password,
                    java.lang.String doco) | 
| void | updateObject(java.lang.Object obj) | 
| boolean | updateWorkItemData(java.lang.String workItemID,
                  java.lang.String data)updates the workitem with the data passed after completion of an exception handler | 
protected static YPersistenceManager _pmgr
protected static YEngine _thisInstance
protected YNetRunnerRepository _netRunnerRepository
public static YEngine getInstance(boolean persisting, boolean gatherHbnStats, boolean redundantMode) throws YPersistenceException
persisting - true if engine state is to be persistedYPersistenceException - if there's a problem restoring from persistencepublic static YEngine getInstance(boolean persisting) throws YPersistenceException
YPersistenceExceptionpublic static YEngine getInstance(boolean persisting, boolean gatherHbnStats) throws YPersistenceException
YPersistenceExceptionpublic static YEngine getInstance()
protected static void initialise(YPersistenceManager pmgr, boolean persisting, boolean gatherHbnStats, boolean redundantMode) throws YPersistenceException
YPersistenceExceptionpublic static boolean isRunning()
public void promote()
             throws YPersistenceException
YPersistenceExceptionpublic void demote()
protected java.util.Set<YClient> loadDefaultClients() throws YPersistenceException
YPersistenceException - A passthrough - since it is only called when
 restoring or when persistence is disabled, this exception is never thrown.public void setGenerateUIMetaData(boolean generate)
generate - true to generate metadata, false to not generate itpublic boolean generateUIMetaData()
public InstanceCache getInstanceCache()
public java.util.Map<java.lang.String,YParameter> getParameters(YSpecificationID specID, java.lang.String taskID, boolean input)
public java.lang.String getEngineClassesRootFilePath()
public void setEngineClassesRootFilePath(java.lang.String path)
public void initialised(int maxWaitSeconds)
public void shutdown()
public void initBuildProperties(java.io.InputStream stream)
public YBuildProperties getBuildProperties()
public YSessionCache getSessionCache()
public void checkEngineRunning()
                        throws YEngineStateException
YEngineStateExceptionpublic void registerInterfaceAClient(InterfaceAManagementObserver observer)
InterfaceAManagementregisterInterfaceAClient in interface InterfaceAManagementpublic void registerInterfaceBObserver(InterfaceBClientObserver observer)
InterfaceBClientregisterInterfaceBObserver in interface InterfaceBClientpublic void registerInterfaceBObserverGateway(ObserverGateway gateway) throws YAWLException
registerInterfaceBObserverGateway in interface InterfaceBClientgateway - the gateway to registerYAWLException - if the observerGateway has a null scheme value.public YAnnouncer getAnnouncer()
getAnnouncer in interface InterfaceAManagementpublic void setEngineStatus(YEngine.Status status)
setEngineStatus in interface InterfaceAManagementpublic YEngine.Status getEngineStatus()
getEngineStatus in interface InterfaceAManagementpublic AnnouncementContext getAnnouncementContext()
getAnnouncementContext in interface InterfaceAManagementpublic int reannounceEnabledWorkItems()
                               throws YStateException
InterfaceAManagementreannounceEnabledWorkItems in interface InterfaceAManagementYStateExceptionpublic int reannounceExecutingWorkItems()
                                 throws YStateException
InterfaceAManagementreannounceExecutingWorkItems in interface InterfaceAManagementYStateExceptionpublic int reannounceFiredWorkItems()
                             throws YStateException
InterfaceAManagementreannounceFiredWorkItems in interface InterfaceAManagementYStateExceptionpublic void reannounceWorkItem(YWorkItem workItem) throws YStateException
InterfaceAManagementNote: This interface current;y only supported workitems in the following states:
reannounceWorkItem in interface InterfaceAManagementYStateExceptionprotected void addRunner(YNetRunner runner)
runner - the runner to addpublic void addRunner(YNetRunner runner, YSpecification specification)
runner - the runner to addspecification - its specificationpublic java.util.List<YNetRunner> getRunnersForPrimaryCase(YIdentifier primaryCaseID)
primaryCaseID - the id of the casepublic YNetRunner getNetRunner(YWorkItem workItem)
public YNetRunner getNetRunner(YIdentifier identifier)
public YNetRunnerRepository getNetRunnerRepository()
public java.lang.String getNetData(java.lang.String caseID)
                            throws YStateException
YStateExceptionpublic java.util.List<YSpecificationID> addSpecifications(java.lang.String specStr, boolean ignoreErrors, YVerificationHandler verificationHandler) throws YPersistenceException
addSpecifications in interface InterfaceAManagementspecStr - an XML formatted specificationignoreErrors - ignore verification errors and load the spec anyway.verificationHandler - an in/out param passing any error messages.YPersistenceExceptionpublic boolean loadSpecification(YSpecification spec)
loadSpecification in interface InterfaceAManagementspec - the specification to loadpublic void unloadSpecification(YSpecificationID specID) throws YStateException, YPersistenceException
unloadSpecification in interface InterfaceAManagementspecID - the identifier of the specification to unloadYStateException - if the spec is still in use (with a live case)YPersistenceException - if there's some persistence problempublic java.util.Set<YSpecificationID> getLoadedSpecificationIDs()
getLoadedSpecificationIDs in interface InterfaceAManagementpublic YSpecification getLatestSpecification(java.lang.String key)
getLatestSpecification in interface InterfaceAManagementkey - the spec's identifier (v2.0+) or uri (pre-v2.0)public YSpecification getSpecification(YSpecificationID specID)
getSpecification in interface InterfaceAManagementpublic YSpecification getSpecificationForCase(YIdentifier caseID)
getSpecificationForCase in interface InterfaceAManagementpublic YSpecification getProcessDefinition(YSpecificationID specID)
InterfaceAManagementgetProcessDefinition in interface InterfaceAManagementpublic java.lang.String getSpecificationDataSchema(YSpecificationID specID)
public java.lang.String getLoadStatus(YSpecificationID specID)
InterfaceAManagementgetLoadStatus in interface InterfaceAManagementpublic java.util.Set<YIdentifier> getCasesForSpecification(YSpecificationID specID)
getCasesForSpecification in interface InterfaceAManagementspecID - the process specification id string.public java.util.Map<YSpecificationID,java.util.List<YIdentifier>> getRunningCaseMap()
protected YIdentifier startCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, java.lang.String caseID, YLogDataItemList logData, java.lang.String serviceRef, boolean delayed) throws YStateException, YDataStateException, YQueryException, YPersistenceException
protected Element formatCaseParams(java.lang.String paramStr, YSpecification spec) throws YStateException
YStateExceptionprotected void removeCaseFromCaches(YIdentifier caseID)
caseID - the id of the completing caseYPersistenceException - if theres a persistence problempublic void cancelCase(YIdentifier caseID, java.lang.String serviceHandle) throws YPersistenceException, YEngineStateException
caseID - the identifier of the cancelling caseYPersistenceException - if there's some persistence problemYEngineStateExceptionpublic void cancelCase(YIdentifier id) throws YPersistenceException, YEngineStateException
InterfaceAManagementcancelCase in interface InterfaceAManagementid - YPersistenceExceptionYEngineStateExceptionpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, YLogDataItemList logData) throws YStateException, YDataStateException, YPersistenceException, YEngineStateException, YQueryException
InterfaceBClientlaunchCase in interface InterfaceBClientspecID - the specification id.caseParams - the XML string of the case params (can be null).completionObserver - the observer for completion events (can be null).YStateExceptionYDataStateExceptionYPersistenceExceptionYEngineStateExceptionYQueryExceptionpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, YLogDataItemList logData, java.lang.String serviceHandle) throws YStateException, YDataStateException, YPersistenceException, YEngineStateException, YQueryException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, java.lang.String caseID, YLogDataItemList logData, java.lang.String serviceHandle, boolean delayed) throws YStateException, YDataStateException, YEngineStateException, YQueryException, YPersistenceException
InterfaceBClientlaunchCase in interface InterfaceBClientspecID - the specification id.caseParams - the XML string of the case params (can be null).completionObserver - the observer for completion events (can be null).caseID - The case identifier to use (not supported in a persisting engine)YStateExceptionYDataStateExceptionYEngineStateExceptionYQueryExceptionYPersistenceExceptionpublic YIdentifier getCaseID(java.lang.String caseIDStr)
InterfaceAManagementgetCaseID in interface InterfaceAManagementpublic java.lang.String getStateTextForCase(YIdentifier caseID)
InterfaceAManagementgetStateTextForCase in interface InterfaceAManagementpublic java.lang.String getStateForCase(YIdentifier caseID)
InterfaceAManagementgetStateForCase in interface InterfaceAManagementpublic java.lang.String getCaseData(java.lang.String caseID)
                             throws YStateException
InterfaceBClientgetCaseData in interface InterfaceBClientcaseID - to retrieve net data ofYStateExceptionpublic java.util.List<YIdentifier> getRunningCaseIDs()
public java.lang.String getNextCaseNbr()
public java.lang.String allocateCaseID()
                                throws YPersistenceException
allocateCaseID in interface InterfaceBClientYPersistenceException - if there's a problem persisting the changepublic void suspendCase(YIdentifier caseID) throws YPersistenceException, YStateException
suspendCase in interface InterfaceAManagementcaseID - the id of the case to suspendYPersistenceException - if there's a problem persisting the changeYStateException - if case cannot be suspended given the current enginepublic void resumeCase(YIdentifier id) throws YPersistenceException, YStateException
resumeCase in interface InterfaceAManagementid - the id of the case to resumeYPersistenceException - if there's a problem persisting the resumed caseYStateException - if case cannot be resumedpublic YNetData getCaseData(YIdentifier id)
id - the id of the casepublic boolean updateCaseData(java.lang.String idStr,
                              java.lang.String data)
                       throws YPersistenceException
YPersistenceExceptionpublic Document getCaseDataDocument(java.lang.String id)
public YTask getTaskDefinition(YSpecificationID specID, java.lang.String taskID)
getTaskDefinition in interface InterfaceBClientspecID - the specification idtaskID - the task idpublic YWorkItemRepository getWorkItemRepository()
public java.util.Set<YWorkItem> getAvailableWorkItems()
InterfaceBClientgetAvailableWorkItems in interface InterfaceBClientpublic YWorkItem getWorkItem(java.lang.String workItemID)
getWorkItem in interface InterfaceBClientpublic java.util.Set<YWorkItem> getAllWorkItems()
InterfaceBClientgetAllWorkItems in interface InterfaceBClientpublic YWorkItem startWorkItem(java.lang.String itemID, YClient client) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
public Element getStartingDataSnapshot(java.lang.String itemID) throws YStateException, YEngineStateException, YDataStateException, YQueryException
public YWorkItem startWorkItem(YWorkItem workItem, YClient client) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
startWorkItem in interface InterfaceBClientworkItem - the enabled, or fired workitem.client - the YAWL external client or service starting the workitemYStateException - if the workitem is not in either of these
                             states.YDataStateExceptionYQueryExceptionYPersistenceExceptionYEngineStateExceptionpublic void completeWorkItem(YWorkItem workItem, java.lang.String data, java.lang.String logPredicate, WorkItemCompletion completionType) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
completeWorkItem in interface InterfaceBClientworkItem - data - logPredicate - - a pre-parse of the completion log predicate for this itemcompletionType - - one of the completion types 'normal' (ordinary completion)
 'force' (forced completion) or 'fail' (forced fail) completionYStateExceptionYDataStateExceptionYQueryExceptionYPersistenceExceptionYEngineStateExceptionpublic YWorkItem skipWorkItem(YWorkItem workItem, YClient client) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
public void checkElegibilityToAddInstances(java.lang.String workItemID)
                                    throws YStateException
checkElegibilityToAddInstances in interface InterfaceBClientworkItemID - the workItemID of a sibling work item.YStateException - if task is not MultiInstance, or
                         if task does not allow dynamic instance creation,
                         or if current number of instances is not less than the maxInstances
                         for the task.public boolean canAddNewInstances(java.lang.String workItemID)
workItemID - the id of the workitem to check againstpublic YWorkItem createNewInstance(YWorkItem workItem, java.lang.String paramValueForMICreation) throws YStateException, YPersistenceException
createNewInstance in interface InterfaceBClientworkItem - the id of a work item inside the task to have a new instance.paramValueForMICreation - format "[InputParam]*
                                InputParam == YStateException - if the task is not able to create a new instance, due to
                         its state or its design.YPersistenceException - if there's a problem with the persistence sessionpublic YWorkItem suspendWorkItem(java.lang.String workItemID) throws YStateException, YPersistenceException
suspendWorkItem in interface InterfaceBClientYStateExceptionYPersistenceExceptionpublic YWorkItem unsuspendWorkItem(java.lang.String workItemID) throws YStateException, YPersistenceException
YStateExceptionYPersistenceExceptionpublic void rollbackWorkItem(java.lang.String workItemID)
                      throws YStateException,
                             YPersistenceException
rollbackWorkItem in interface InterfaceBClientYStateExceptionYPersistenceExceptionpublic java.util.Set getChildrenOfWorkItem(YWorkItem workItem)
getChildrenOfWorkItem in interface InterfaceBClientpublic boolean updateWorkItemData(java.lang.String workItemID,
                                  java.lang.String data)
public void cancelWorkItem(YWorkItem workItem)
public YAWLServiceReference getRegisteredYawlService(java.lang.String yawlServiceID)
getRegisteredYawlService in interface InterfaceAManagementpublic java.util.Set<YAWLServiceReference> getYAWLServices()
public void addYawlService(YAWLServiceReference yawlService) throws YPersistenceException
addYawlService in interface InterfaceAManagementyawlService - YPersistenceExceptionpublic YAWLServiceReference removeYawlService(java.lang.String serviceURI) throws YPersistenceException
InterfaceAManagementremoveYawlService in interface InterfaceAManagementserviceURI - YPersistenceExceptionpublic boolean addExternalClient(YExternalClient client) throws YPersistenceException
addExternalClient in interface InterfaceAManagementclient - the external client to addYPersistenceExceptionpublic boolean updateExternalClient(java.lang.String id,
                                    java.lang.String password,
                                    java.lang.String doco)
                             throws YPersistenceException
YPersistenceExceptionpublic YExternalClient getExternalClient(java.lang.String name)
getExternalClient in interface InterfaceAManagementpublic java.util.Set<YExternalClient> getExternalClients()
public java.util.Set getUsers()
InterfaceAManagementgetUsers in interface InterfaceAManagementpublic YExternalClient removeExternalClient(java.lang.String clientName) throws YPersistenceException
YPersistenceExceptionpublic void setDefaultWorklist(java.lang.String paramStr)
paramStr - the URL and password of the service (separated by a hash)java.lang.RuntimeException - if the parameters read from web.xml are incorrectly
 formattedpublic YAWLServiceReference getDefaultWorklist()
public void setAllowAdminID(boolean allow)
public boolean isGenericAdminAllowed()
public static boolean isPersisting()
public void storeObject(java.lang.Object obj)
                 throws YPersistenceException
storeObject in interface InterfaceAManagementobj - YPersistenceExceptionpublic void updateObject(java.lang.Object obj)
                  throws YPersistenceException
YPersistenceExceptionpublic void deleteObject(java.lang.Object obj)
                  throws YPersistenceException
YPersistenceExceptionprotected void clearCaseFromPersistence(YIdentifier id) throws YPersistenceException
id - the case id to clearYPersistenceException - if there's a problem clearing the casepublic static YPersistenceManager getPersistenceManager()
public boolean addInterfaceXListener(java.lang.String observerURI)
public boolean removeInterfaceXListener(java.lang.String uri)
public void dump()
InterfaceAManagementdump in interface InterfaceAManagementpublic void setHibernateStatisticsEnabled(boolean enabled)
public boolean isHibernateStatisticsEnabled()
public java.lang.String getHibernateStatistics()
public void disableProcessLogging()
Copyright © 2004-2014 The YAWL Foundation.