public class InterfaceClients extends AbstractEngineClient
_defaultURI, _engineLogonName, _engineLogonPassword, _engineURI, _interfaceAClient, _interfaceBClient, _log, _serviceName, _serviceURI, _sessionHandle, ADMIN_STR, FAIL_STR, SUCCESS_STR, WORKITEM_ERR
Modifier | Constructor and Description |
---|---|
protected |
InterfaceClients(java.lang.String logonName,
java.lang.String password)
Initialises the class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addEventListener(java.lang.String uri) |
void |
announceResourceCalendarStatusChange(java.lang.String origAgent,
java.lang.String changeXML) |
void |
announceResourceUnavailable(AbstractResource resource,
WorkItemRecord wir,
boolean primary) |
void |
announceResourceUnavailable(WorkItemRecord wir) |
CostClient |
getCostClient() |
DocStoreClient |
getDocStoreClient() |
java.lang.String |
getEngineSpecificationStatistics(YSpecificationID specID,
long from,
long to) |
java.lang.String |
getEngineXESLog(YSpecificationID specID,
boolean withData) |
java.lang.String |
getExceptionServiceURI() |
boolean |
hasCostClient() |
boolean |
hasDocStoreClient() |
boolean |
hasExceptionServiceEnabled() |
void |
initClients(java.lang.String engineURI,
java.lang.String exceptionURI,
java.lang.String schedulingURI,
java.lang.String costServiceURI,
java.lang.String docStoreURI)
Called on servlet startup with the various uris needed to initialise the
various clients
|
protected java.lang.String |
redirectWorkItemToYawlService(WorkItemRecord wir,
java.lang.String serviceName)
Dispatches a work item to a YAWL Custom Service for handling.
|
void |
reestablishClients(InterfaceB_EnvironmentBasedClient client)
Reestablishes clients when the resource service restarts
|
java.lang.String |
registerCalendarStatusChangeListener(java.lang.String uri,
java.lang.String userID) |
void |
removeCalendarStatusChangeListener(java.lang.String uri,
java.lang.String userID) |
void |
removeCalendarStatusChangeListeners(java.lang.String userID) |
protected void |
removeCaseFromDocStore(java.lang.String caseID) |
boolean |
removeEventListener(java.lang.String uri) |
addExternalClient, addRegisteredService, canAddNewInstance, cancelCase, connected, createNewWorkItemInstance, engineIsAvailable, fail, getAdminUserPassword, getAllLiveWorkItems, getAllRunningCaseIDs, getAllRunningCases, getCaseData, getCases, getEngineBuildProperties, getEngineLogonName, getEngineLogonPassword, getEngineURI, getExternalClients, getIABackendURI, getLiveWorkItemsForCase, getLiveWorkItemsForIdentifier, getMITaskAttributes, getNamespace, getRegisteredServices, getRegisteredServicesAsXML, getRunningCases, getRunningCasesAsList, getServiceURI, getServiceURI, getSessionHandle, getSpecification, getSpecificationDataSchema, getTaskParamsAsXML, getWorkItemsForService, initEngineURI, isAdminSession, isRunningCaseID, launchCase, launchCase, launchCase, launchCase, removeExternalClient, removeRegisteredService, setInterfaceBClient, setServiceURI, skipWorkItem, successful, suspendWorkItem, unloadSpecification, unsuspendWorkItem, updateExternalClient, uploadSpecification
protected InterfaceClients(java.lang.String logonName, java.lang.String password)
logonName
- the resource service's logon name (from web.xml)password
- the resource service's logon password (from web.xml)public void initClients(java.lang.String engineURI, java.lang.String exceptionURI, java.lang.String schedulingURI, java.lang.String costServiceURI, java.lang.String docStoreURI)
engineURI
- the URI of the Engine's Interface BexceptionURI
- the URI of the Worklet Exception ServiceschedulingURI
- the URI of the Scheduling ServicecostServiceURI
- the URI of the Cost ServicedocStoreURI
- the URI of the Document Storepublic void reestablishClients(InterfaceB_EnvironmentBasedClient client)
reestablishClients
in class AbstractEngineClient
client
- the Interface B client from InterfaceBWebsideControllerpublic void announceResourceUnavailable(WorkItemRecord wir)
public void announceResourceUnavailable(AbstractResource resource, WorkItemRecord wir, boolean primary)
public void announceResourceCalendarStatusChange(java.lang.String origAgent, java.lang.String changeXML)
public java.lang.String registerCalendarStatusChangeListener(java.lang.String uri, java.lang.String userID)
public void removeCalendarStatusChangeListener(java.lang.String uri, java.lang.String userID)
public void removeCalendarStatusChangeListeners(java.lang.String userID)
public java.lang.String addEventListener(java.lang.String uri)
public boolean removeEventListener(java.lang.String uri)
protected java.lang.String redirectWorkItemToYawlService(WorkItemRecord wir, java.lang.String serviceName)
wir
- the work item to be redirected.serviceName
- the name of the service to redirect it topublic java.lang.String getEngineXESLog(YSpecificationID specID, boolean withData)
public java.lang.String getEngineSpecificationStatistics(YSpecificationID specID, long from, long to)
public boolean hasCostClient()
public CostClient getCostClient()
public boolean hasDocStoreClient()
public DocStoreClient getDocStoreClient()
public boolean hasExceptionServiceEnabled()
public java.lang.String getExceptionServiceURI()
protected void removeCaseFromDocStore(java.lang.String caseID)
Copyright © 2004-2014 The YAWL Foundation.