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
YPersistenceException
public static YEngine getInstance(boolean persisting, boolean gatherHbnStats) throws YPersistenceException
YPersistenceException
public static YEngine getInstance()
protected static void initialise(YPersistenceManager pmgr, boolean persisting, boolean gatherHbnStats, boolean redundantMode) throws YPersistenceException
YPersistenceException
public static boolean isRunning()
public void promote() throws YPersistenceException
YPersistenceException
public 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
YEngineStateException
public void registerInterfaceAClient(InterfaceAManagementObserver observer)
InterfaceAManagement
registerInterfaceAClient
in interface InterfaceAManagement
public void registerInterfaceBObserver(InterfaceBClientObserver observer)
InterfaceBClient
registerInterfaceBObserver
in interface InterfaceBClient
public void registerInterfaceBObserverGateway(ObserverGateway gateway) throws YAWLException
registerInterfaceBObserverGateway
in interface InterfaceBClient
gateway
- the gateway to registerYAWLException
- if the observerGateway has a null scheme value.public YAnnouncer getAnnouncer()
getAnnouncer
in interface InterfaceAManagement
public void setEngineStatus(YEngine.Status status)
setEngineStatus
in interface InterfaceAManagement
public YEngine.Status getEngineStatus()
getEngineStatus
in interface InterfaceAManagement
public AnnouncementContext getAnnouncementContext()
getAnnouncementContext
in interface InterfaceAManagement
public int reannounceEnabledWorkItems() throws YStateException
InterfaceAManagement
reannounceEnabledWorkItems
in interface InterfaceAManagement
YStateException
public int reannounceExecutingWorkItems() throws YStateException
InterfaceAManagement
reannounceExecutingWorkItems
in interface InterfaceAManagement
YStateException
public int reannounceFiredWorkItems() throws YStateException
InterfaceAManagement
reannounceFiredWorkItems
in interface InterfaceAManagement
YStateException
public void reannounceWorkItem(YWorkItem workItem) throws YStateException
InterfaceAManagement
Note: This interface current;y only supported workitems in the following states:
reannounceWorkItem
in interface InterfaceAManagement
YStateException
protected 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
YStateException
public java.util.List<YSpecificationID> addSpecifications(java.lang.String specStr, boolean ignoreErrors, YVerificationHandler verificationHandler) throws YPersistenceException
addSpecifications
in interface InterfaceAManagement
specStr
- an XML formatted specificationignoreErrors
- ignore verification errors and load the spec anyway.verificationHandler
- an in/out param passing any error messages.YPersistenceException
public boolean loadSpecification(YSpecification spec)
loadSpecification
in interface InterfaceAManagement
spec
- the specification to loadpublic void unloadSpecification(YSpecificationID specID) throws YStateException, YPersistenceException
unloadSpecification
in interface InterfaceAManagement
specID
- 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 InterfaceAManagement
public YSpecification getLatestSpecification(java.lang.String key)
getLatestSpecification
in interface InterfaceAManagement
key
- the spec's identifier (v2.0+) or uri (pre-v2.0)public YSpecification getSpecification(YSpecificationID specID)
getSpecification
in interface InterfaceAManagement
public YSpecification getSpecificationForCase(YIdentifier caseID)
getSpecificationForCase
in interface InterfaceAManagement
public YSpecification getProcessDefinition(YSpecificationID specID)
InterfaceAManagement
getProcessDefinition
in interface InterfaceAManagement
public java.lang.String getSpecificationDataSchema(YSpecificationID specID)
public java.lang.String getLoadStatus(YSpecificationID specID)
InterfaceAManagement
getLoadStatus
in interface InterfaceAManagement
public java.util.Set<YIdentifier> getCasesForSpecification(YSpecificationID specID)
getCasesForSpecification
in interface InterfaceAManagement
specID
- 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
YStateException
protected 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 problemYEngineStateException
public void cancelCase(YIdentifier id) throws YPersistenceException, YEngineStateException
InterfaceAManagement
cancelCase
in interface InterfaceAManagement
id
- YPersistenceException
YEngineStateException
public java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, YLogDataItemList logData) throws YStateException, YDataStateException, YPersistenceException, YEngineStateException, YQueryException
InterfaceBClient
launchCase
in interface InterfaceBClient
specID
- the specification id.caseParams
- the XML string of the case params (can be null).completionObserver
- the observer for completion events (can be null).YStateException
YDataStateException
YPersistenceException
YEngineStateException
YQueryException
public 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
InterfaceBClient
launchCase
in interface InterfaceBClient
specID
- 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)YStateException
YDataStateException
YEngineStateException
YQueryException
YPersistenceException
public YIdentifier getCaseID(java.lang.String caseIDStr)
InterfaceAManagement
getCaseID
in interface InterfaceAManagement
public java.lang.String getStateTextForCase(YIdentifier caseID)
InterfaceAManagement
getStateTextForCase
in interface InterfaceAManagement
public java.lang.String getStateForCase(YIdentifier caseID)
InterfaceAManagement
getStateForCase
in interface InterfaceAManagement
public java.lang.String getCaseData(java.lang.String caseID) throws YStateException
InterfaceBClient
getCaseData
in interface InterfaceBClient
caseID
- to retrieve net data ofYStateException
public java.util.List<YIdentifier> getRunningCaseIDs()
public java.lang.String getNextCaseNbr()
public java.lang.String allocateCaseID() throws YPersistenceException
allocateCaseID
in interface InterfaceBClient
YPersistenceException
- if there's a problem persisting the changepublic void suspendCase(YIdentifier caseID) throws YPersistenceException, YStateException
suspendCase
in interface InterfaceAManagement
caseID
- 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 InterfaceAManagement
id
- 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
YPersistenceException
public Document getCaseDataDocument(java.lang.String id)
public YTask getTaskDefinition(YSpecificationID specID, java.lang.String taskID)
getTaskDefinition
in interface InterfaceBClient
specID
- the specification idtaskID
- the task idpublic YWorkItemRepository getWorkItemRepository()
public java.util.Set<YWorkItem> getAvailableWorkItems()
InterfaceBClient
getAvailableWorkItems
in interface InterfaceBClient
public YWorkItem getWorkItem(java.lang.String workItemID)
getWorkItem
in interface InterfaceBClient
public java.util.Set<YWorkItem> getAllWorkItems()
InterfaceBClient
getAllWorkItems
in interface InterfaceBClient
public 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 InterfaceBClient
workItem
- 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.YDataStateException
YQueryException
YPersistenceException
YEngineStateException
public void completeWorkItem(YWorkItem workItem, java.lang.String data, java.lang.String logPredicate, WorkItemCompletion completionType) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
completeWorkItem
in interface InterfaceBClient
workItem
- 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) completionYStateException
YDataStateException
YQueryException
YPersistenceException
YEngineStateException
public YWorkItem skipWorkItem(YWorkItem workItem, YClient client) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
public void checkElegibilityToAddInstances(java.lang.String workItemID) throws YStateException
checkElegibilityToAddInstances
in interface InterfaceBClient
workItemID
- 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 InterfaceBClient
workItem
- 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 InterfaceBClient
YStateException
YPersistenceException
public YWorkItem unsuspendWorkItem(java.lang.String workItemID) throws YStateException, YPersistenceException
YStateException
YPersistenceException
public void rollbackWorkItem(java.lang.String workItemID) throws YStateException, YPersistenceException
rollbackWorkItem
in interface InterfaceBClient
YStateException
YPersistenceException
public java.util.Set getChildrenOfWorkItem(YWorkItem workItem)
getChildrenOfWorkItem
in interface InterfaceBClient
public 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 InterfaceAManagement
public java.util.Set<YAWLServiceReference> getYAWLServices()
public void addYawlService(YAWLServiceReference yawlService) throws YPersistenceException
addYawlService
in interface InterfaceAManagement
yawlService
- YPersistenceException
public YAWLServiceReference removeYawlService(java.lang.String serviceURI) throws YPersistenceException
InterfaceAManagement
removeYawlService
in interface InterfaceAManagement
serviceURI
- YPersistenceException
public boolean addExternalClient(YExternalClient client) throws YPersistenceException
addExternalClient
in interface InterfaceAManagement
client
- the external client to addYPersistenceException
public boolean updateExternalClient(java.lang.String id, java.lang.String password, java.lang.String doco) throws YPersistenceException
YPersistenceException
public YExternalClient getExternalClient(java.lang.String name)
getExternalClient
in interface InterfaceAManagement
public java.util.Set<YExternalClient> getExternalClients()
public java.util.Set getUsers()
InterfaceAManagement
getUsers
in interface InterfaceAManagement
public YExternalClient removeExternalClient(java.lang.String clientName) throws YPersistenceException
YPersistenceException
public 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 InterfaceAManagement
obj
- YPersistenceException
public void updateObject(java.lang.Object obj) throws YPersistenceException
YPersistenceException
public void deleteObject(java.lang.Object obj) throws YPersistenceException
YPersistenceException
protected 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()
InterfaceAManagement
dump
in interface InterfaceAManagement
public void setHibernateStatisticsEnabled(boolean enabled)
public boolean isHibernateStatisticsEnabled()
public java.lang.String getHibernateStatistics()
public void disableProcessLogging()
Copyright © 2004-2014 The YAWL Foundation.