public class YawlClient extends InterfaceBWebsideController
_ibCache, _interfaceBClient, _logger, _report, engineLogonName, engineLogonPassword, XSD_ANYURI_TYPE, XSD_NAMESPACE, XSD_NCNAME_TYPE, XSD_STRINGTYPE
Constructor and Description |
---|
YawlClient() |
Modifier and Type | Method and Description |
---|---|
void |
addCaseCompletionListener(CaseCompletionListener listener)
Adds a listener for case completions
|
boolean |
cancelCase(java.lang.String caseID)
Cancels a currently executing case
|
java.lang.String |
getSpecificationXMLForCase(java.lang.String caseID)
Gets an XML representation of the specification of which the case is an instance
|
java.util.List<WorkItemRecord> |
getWorkItemsForCase(java.lang.String caseID)
Returns the current set of active workitems for a case
|
void |
handleCancelledCaseEvent(java.lang.String caseID)
Receives notification from the engine that an active case has been
cancelled.
|
void |
handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
Receives notification from the engine that an active workitem has been
cancelled.
|
void |
handleCompleteCaseEvent(java.lang.String caseID,
java.lang.String casedata)
Receives notification from the engine that an active case has been
completed.
|
void |
handleEnabledWorkItemEvent(WorkItemRecord enabledWorkItem)
Receives notification from the engine of an enabled workitem.
|
java.lang.String |
launchCase(YSpecificationID specID)
Starts a new instance of a specification
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams)
Starts a new instance of a specification
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
YLogDataItemList logData)
Starts a new instance of a specification
|
void |
removeCaseCompletionListener(CaseCompletionListener listener)
Removes a listener for case completions
|
boolean |
resumeCase(java.lang.String caseID)
Resumes a currently suspended case
|
boolean |
suspendCase(java.lang.String caseID)
Suspends a currently executing case
|
boolean |
uploadSpecification(java.lang.String xml)
Loads a specification into the engine
|
checkConnection, checkInWorkItem, checkInWorkItem, checkInWorkItem, checkOut, checkOutAllInstancesOfThisTask, connect, describeRequiredParams, destroy, doGet, getAuthenticationConfig, getCachedWorkItem, getChildren, getEngineStoredWorkItem, getIBCache, getModel, getResourcingSpecs, getSpecificationData, getSpecificationData, getSpecificationPrototypesList, getTaskInformation, getTaskInformation, handleCaseResumedEvent, handleCaseSuspendedEvent, handleCaseSuspendingEvent, handleDeadlockedCaseEvent, handleEngineInitialisationCompletedEvent, handleStartCaseEvent, handleTimerExpiryEvent, handleWorkItemStatusChangeEvent, logContactError, prepareReplyRootElement, setEngineLogonName, setEngineLogonPassword, setRemoteAuthenticationDetails, setUpInterfaceBClient, successful
public void addCaseCompletionListener(CaseCompletionListener listener)
listener
- the CaseCompletionListener to be addedpublic void removeCaseCompletionListener(CaseCompletionListener listener)
listener
- the CaseCompletionListener to be removedpublic java.lang.String getSpecificationXMLForCase(java.lang.String caseID) throws java.io.IOException
caseID
- the case identifier to get te specification forjava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to retrieve the specificationpublic boolean uploadSpecification(java.lang.String xml) throws java.io.IOException
xml
- the specification as XMLjava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to load the specificationpublic java.lang.String launchCase(YSpecificationID specID) throws java.io.IOException
specID
- the specification identifier to start an instance ofjava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to start an instance of the specificationpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams) throws java.io.IOException
specID
- the specification identifier to start an instance ofcaseParams
- an XML representation of input net variable data (may be null)java.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to start an instance of the specificationpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, YLogDataItemList logData) throws java.io.IOException
specID
- the specification identifier to start an instance ofcaseParams
- an XML representation of input net variable data (may be null)logData
- a set of additional values to be logged with the case startjava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to start an instance of the specificationpublic boolean cancelCase(java.lang.String caseID) throws java.io.IOException
caseID
- the identifier of the case to canceljava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to cancel the casepublic boolean suspendCase(java.lang.String caseID) throws java.io.IOException
caseID
- the identifier of the case to suspendjava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to suspend the casepublic boolean resumeCase(java.lang.String caseID) throws java.io.IOException
caseID
- the identifier of the case to resumejava.io.IOException
- if there is a problem connecting to the engine, or if the
engine is unable to resume the casepublic java.util.List<WorkItemRecord> getWorkItemsForCase(java.lang.String caseID) throws java.io.IOException
caseID
- the case in questionjava.io.IOException
- if engine can't be found.public void handleEnabledWorkItemEvent(WorkItemRecord enabledWorkItem)
InterfaceBWebsideController
handleEnabledWorkItemEvent
in class InterfaceBWebsideController
enabledWorkItem
- the enabled work itempublic void handleCancelledWorkItemEvent(WorkItemRecord workItemRecord)
InterfaceBWebsideController
handleCancelledWorkItemEvent
in class InterfaceBWebsideController
workItemRecord
- the cancelled work itempublic void handleCancelledCaseEvent(java.lang.String caseID)
InterfaceBWebsideController
handleCancelledCaseEvent
in class InterfaceBWebsideController
caseID
- the id of the case that has been cancelledpublic void handleCompleteCaseEvent(java.lang.String caseID, java.lang.String casedata)
InterfaceBWebsideController
handleCompleteCaseEvent
in class InterfaceBWebsideController
caseID
- the id of the completed case.casedata
- the set of net-level data for the case when it completesCopyright © 2004-2014 The YAWL Foundation.