public class InterfaceB_EnvironmentBasedClient extends Interface_Client
Constructor and Description |
---|
InterfaceB_EnvironmentBasedClient(java.lang.String backEndURIStr)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cancelCase(java.lang.String caseID,
java.lang.String sessionHandle)
Cancels the case with caseID.
|
java.lang.String |
checkConnection(java.lang.String sessionHandle)
Checks whether the connection with the engine is alive, authenticated
properly.
|
java.lang.String |
checkInWorkItem(java.lang.String workItemID,
java.lang.String data,
java.lang.String sessionHandle)
Deprecated.
since 2.1 - use checkInWorkItem(String, String, String, String) instead
Checks the work item back into the engine once the task is complete.
Succesfully doing so will cause the work item to be completed in the engine.
|
java.lang.String |
checkInWorkItem(java.lang.String workItemID,
java.lang.String data,
java.lang.String logPredicate,
java.lang.String sessionHandle)
Checks the work item back into the engine once the task is complete.
|
java.lang.String |
checkOutWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Allow a client to obtain ownership of a unit of work.
|
java.lang.String |
checkPermissionToAddInstances(java.lang.String workItemID,
java.lang.String sessionHandle)
Determines whether or not a task will allow a dynamically
created new instance to be created.
|
java.lang.String |
connect(java.lang.String userID,
java.lang.String password)
Connects the user to the engine.
|
java.lang.String |
createNewInstance(java.lang.String workItemID,
java.lang.String paramValueForMICreation,
java.lang.String sessionHandle)
Creates a new instance of a multi instance task.
|
java.lang.String |
disconnect(java.lang.String handle)
Disconnects an external entity from the engine
|
java.lang.String |
exportAllCaseStates(java.lang.String sessionHandle) |
java.lang.String |
exportCaseState(java.lang.String caseID,
java.lang.String sessionHandle) |
java.lang.String |
getAllRunningCases(java.lang.String sessionHandle)
Gets a complete list of all running case ids from the engine
|
java.lang.String |
getBackEndURI() |
java.lang.String |
getCaseData(java.lang.String caseID,
java.lang.String sessionHandle)
Gets the data of the case
|
java.lang.String |
getCaseInstanceSummary(java.lang.String sessionHandle)
Gets a summary table of all currently live process instances
|
java.lang.String |
getCases(java.lang.String specID,
java.lang.String sessionHandle)
Deprecated.
superseded by getCases(YSpecificationID, String)
|
java.lang.String |
getCases(YSpecificationID specID,
java.lang.String sessionHandle)
Gets the set of active cases in the engine.
|
java.lang.String |
getCaseState(java.lang.String caseID,
java.lang.String sessionHandle)
Gets the state description of the case
|
java.util.List<WorkItemRecord> |
getChildrenOfWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Finds out the children of a given work item.
|
java.util.List<WorkItemRecord> |
getCompleteListOfLiveWorkItems(java.lang.String sessionHandle)
Returns a list (of WorkItemRecord) of all the work items that are
currently active in the engine.
|
java.lang.String |
getCompleteListOfLiveWorkItemsAsXML(java.lang.String sessionHandle)
Returns an XML string describing all the work items that are
currently active in the engine.
|
java.util.List<WorkItemRecord> |
getLiveWorkItemsForIdentifier(java.lang.String idType,
java.lang.String id,
java.lang.String sessionHandle)
Retrieves a List of live workitems for the case or spec id passed
|
java.lang.String |
getLiveWorkItemsForIdentifierAsXML(java.lang.String idType,
java.lang.String id,
java.lang.String sessionHandle)
Retrieves an XML description of live workitems for the case or spec id passed
|
java.lang.String |
getMITaskAttributes(java.lang.String specID,
java.lang.String taskID,
java.lang.String sessionHandle)
Deprecated.
superseded by getMITaskAttributes(YSpecificationID, String, String) -
this version should be used for pre-2.0 schema-based specifications only
|
java.lang.String |
getMITaskAttributes(YSpecificationID specID,
java.lang.String taskID,
java.lang.String sessionHandle)
Gets an XML representation of the attributes of a multi-instance task.
|
java.lang.String |
getParameterInstanceSummary(java.lang.String caseID,
java.lang.String itemID,
java.lang.String sessionHandle)
Gets a summary table of all data parameters for the workitem of the case specified
|
java.lang.String |
getResourcingSpecs(YSpecificationID specID,
java.lang.String taskID,
java.lang.String sessionHandle)
Gets the set of resourcing specifications for the specified task of the specified spec
|
java.lang.String |
getSpecification(java.lang.String specID,
java.lang.String sessionHandle)
Deprecated.
superseded by getSpecification(YSpecificationID, String)
|
java.lang.String |
getSpecification(YSpecificationID specID,
java.lang.String sessionHandle)
Gets an XML representation of a workflow specification.
|
java.lang.String |
getSpecificationData(YSpecificationID specID,
java.lang.String sessionHandle)
Gets an XML representation of some summary information of a workflow specification.
|
java.lang.String |
getSpecificationDataSchema(java.lang.String specID,
java.lang.String sessionHandle)
Deprecated.
superseded by getSpecificationDataSchema(YSpecificationID, String)
|
java.lang.String |
getSpecificationDataSchema(YSpecificationID specID,
java.lang.String sessionHandle)
Gets the user-defined data schema for a specification
|
java.lang.String |
getSpecificationForCase(java.lang.String caseID,
java.lang.String sessionHandle)
Gets an XML representation of a workflow specification for a specified, currently
executing case.
|
java.lang.String |
getSpecificationIDForCase(java.lang.String caseID,
java.lang.String sessionHandle)
Gets an XML representation of a workflow specification id for a specified,
currently executing case.
|
java.util.List<SpecificationData> |
getSpecificationList(java.lang.String sessionHandle)
Creates a list of SpecificationData objects for the specifications currently
loaded into the engine.
|
java.lang.String |
getStartingDataSnapshot(java.lang.String workItemID,
java.lang.String sessionHandle)
Gets a snapshot of data values that would be assigned to an enabled work item
IF that work item was started at the moment the method is called.
|
java.lang.String |
getTaskInformationStr(java.lang.String specID,
java.lang.String taskID,
java.lang.String sessionHandle)
Deprecated.
superseded by getTaskInformationStr(YSpecificationID, String, String)
- this version should be used for pre-2.0 schema-based specifications only
|
java.lang.String |
getTaskInformationStr(YSpecificationID specID,
java.lang.String taskID,
java.lang.String sessionHandle)
Gets an XML representation of information the task declaration.
|
java.lang.String |
getWorkItem(java.lang.String itemID,
java.lang.String sessionHandle)
Returns an XML string describing a current work item.
|
long |
getWorkItemExpiryTime(java.lang.String itemID,
java.lang.String sessionHandle)
Returns the expiry time of a work item's timer.
|
java.lang.String |
getWorkItemInstanceSummary(java.lang.String caseID,
java.lang.String sessionHandle)
Gets a summary table of all completed and live workitems for a case
|
java.util.List<WorkItemRecord> |
getWorkItemsForCase(java.lang.String caseID,
java.lang.String sessionHandle)
Returns the current set of active workitems for a case
|
java.util.List<WorkItemRecord> |
getWorkItemsForService(java.lang.String serviceURI,
java.lang.String sessionHandle)
Returns the current set of active workitems that are associated with a specified
custom service
|
java.util.List<WorkItemRecord> |
getWorkItemsForSpecification(java.lang.String specName,
java.lang.String sessionHandle)
Returns the current set of active workitems for a specification
|
java.util.List<WorkItemRecord> |
getWorkItemsForTask(java.lang.String taskID,
java.lang.String sessionHandle)
Returns the current set of active workitems that are instances of a specified task
|
java.lang.String |
importCases(java.lang.String xml,
java.lang.String sessionHandle) |
boolean |
isAdministrator(java.lang.String sessionHandle)
Checks if the session has administrative access
|
java.lang.String |
launchCase(java.lang.String specID,
java.lang.String caseParams,
java.lang.String sessionHandle)
Deprecated.
superseded by launchCase(YSpecificationID, String, String)
|
java.lang.String |
launchCase(java.lang.String specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
java.lang.String completionObserverURI)
Deprecated.
superseded by launchCase(YSpecificationID, String, String)
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
java.lang.String caseID,
YLogDataItemList logData,
java.lang.String completionObserverURI)
Launches a case instance.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
java.lang.String caseID,
YLogDataItemList logData,
java.lang.String completionObserverURI,
java.util.Date start)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
java.lang.String caseID,
YLogDataItemList logData,
java.lang.String completionObserverURI,
javax.xml.datatype.Duration wait)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
java.lang.String caseID,
YLogDataItemList logData,
java.lang.String completionObserverURI,
long mSec)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
YLogDataItemList logData,
java.lang.String completionObserverURI)
Launches a case instance.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
YLogDataItemList logData,
java.lang.String completionObserverURI,
java.util.Date start)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
YLogDataItemList logData,
java.lang.String completionObserverURI,
javax.xml.datatype.Duration wait)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
java.lang.String sessionHandle,
YLogDataItemList logData,
java.lang.String completionObserverURI,
long mSec)
Launches a case instance after a delay.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
YLogDataItemList logData,
java.lang.String sessionHandle)
Launches a case instance of the latest version of the specification loaded.
|
java.lang.String |
launchCase(YSpecificationID specID,
java.lang.String caseParams,
YLogDataItemList logData,
java.lang.String caseID,
java.lang.String sessionHandle)
Launches a case instance.
|
TaskInformation |
parseTaskInformation(java.lang.String taskInfoStr)
Parses the XML string and returns a TaskInfo object
(easier to manage).
|
java.lang.String |
pollPerfStats(java.lang.String sessionHandle) |
java.lang.String |
postToExternalURL(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> params)
A generic method for sending a HTTP POST message, with parameters, to a URL
external to the standard YAWL environment
|
java.lang.String |
rejectAnnouncedEnabledTask(java.lang.String workItemID,
java.lang.String sessionHandle)
Rejects the announcement of an enabled work item to a service, and passes the
the work item back to the engine for processing by the default work list
|
java.lang.String |
rollbackWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Rolls back a work item, from 'executing' to 'fired' status.
|
java.lang.String |
skipWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Skips a work item.
|
java.lang.String |
stripOuterElement(java.lang.String xml)
Removes the outermost set of xml tags from a string, if any
|
java.lang.String |
suspendWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Suspends a work item.
|
java.lang.String |
unsuspendWorkItem(java.lang.String workItemID,
java.lang.String sessionHandle)
Unuspends a work item.
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, successful
public InterfaceB_EnvironmentBasedClient(java.lang.String backEndURIStr)
backEndURIStr
- the back end uri of where to find
the engine. A default deployment of this value is
http://localhost:8080/yawl/ibpublic java.lang.String getBackEndURI()
public java.lang.String connect(java.lang.String userID, java.lang.String password) throws java.io.IOException
userID
- the user id.password
- the user passwordjava.io.IOException
- if engine cannot be foundpublic java.lang.String disconnect(java.lang.String handle) throws java.io.IOException
handle
- the sessionHandle to disconnectjava.io.IOException
- if the engine can't be reachedpublic java.util.List<WorkItemRecord> getCompleteListOfLiveWorkItems(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if engine can't be found.WorkItemRecord
public java.lang.String getCompleteListOfLiveWorkItemsAsXML(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.lang.String getWorkItem(java.lang.String itemID, java.lang.String sessionHandle) throws java.io.IOException
itemID
- the workitem idsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public long getWorkItemExpiryTime(java.lang.String itemID, java.lang.String sessionHandle) throws java.io.IOException
itemID
- the workitem idsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.util.List<WorkItemRecord> getWorkItemsForCase(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case in questionsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.util.List<WorkItemRecord> getWorkItemsForSpecification(java.lang.String specName, java.lang.String sessionHandle) throws java.io.IOException
specName
- the specification in questionsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.util.List<WorkItemRecord> getWorkItemsForTask(java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
taskID
- the task in questionsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.util.List<WorkItemRecord> getLiveWorkItemsForIdentifier(java.lang.String idType, java.lang.String id, java.lang.String sessionHandle) throws java.io.IOException, JDOMException
idType
- : "case" for a case's workitems, "spec" for a specification's,
"task" for a specific taskIDid
- the identifier for the case/spec/tasksessionHandle
- the session handlejava.io.IOException
- if there's a problem connecting to the engineJDOMException
- if there's a problem with xml conversionspublic java.util.List<WorkItemRecord> getWorkItemsForService(java.lang.String serviceURI, java.lang.String sessionHandle) throws java.io.IOException
serviceURI
- the uri of the service in questionsessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.lang.String getLiveWorkItemsForIdentifierAsXML(java.lang.String idType, java.lang.String id, java.lang.String sessionHandle) throws java.io.IOException, JDOMException
idType
- : "case" for a case's workitems, "spec" for a specification's,
"task" for a specific taskIDid
- the identifier for the case/spec/tasksessionHandle
- the session handlejava.io.IOException
- if there's a problem connecting to the engineJDOMException
- if there's a problem with xml conversionspublic java.util.List<SpecificationData> getSpecificationList(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if engine can't be found.public java.lang.String getSpecification(java.lang.String specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specid.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecification(YSpecificationID specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specid.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecificationData(YSpecificationID specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specid.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecificationForCase(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the identifier of a currently executing case.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecificationIDForCase(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the identifier of a currently executing case.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecificationDataSchema(java.lang.String specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification idsessionHandle
- an active session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getSpecificationDataSchema(YSpecificationID specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification idsessionHandle
- an active session handlejava.io.IOException
- if the engine can't be found.public java.lang.String checkOutWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the workitem id.sessionHandle
- the sessionhandlejava.io.IOException
- if the engine can't be found.public java.lang.String rejectAnnouncedEnabledTask(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the workitem id.sessionHandle
- the sessionhandlejava.io.IOException
- if the engine can't be found.public java.lang.String getStartingDataSnapshot(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the workitem idsessionHandle
- the sessionhandlejava.io.IOException
- if the engine can't be found.public java.lang.String getTaskInformationStr(java.lang.String specID, java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the spec id.taskID
- the task id.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String getTaskInformationStr(YSpecificationID specID, java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the spec id.taskID
- the task id.sessionHandle
- the session handlejava.io.IOException
- if the engine can't be found.public java.lang.String checkConnection(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if engine cannot be found.public java.lang.String checkInWorkItem(java.lang.String workItemID, java.lang.String data, java.lang.String logPredicate, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.data
- formated data eg. logPredicate
- configurable logging string to be logged with the checkinsessionHandle
- the session handlejava.io.IOException
- if engine cannot be found.public java.lang.String checkInWorkItem(java.lang.String workItemID, java.lang.String data, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.data
- formated data eg. sessionHandle
- the session handlejava.io.IOException
- if engine cannot be found.public java.lang.String checkPermissionToAddInstances(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the workItemID of a sibling work item.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be found
if task does not allow dynamic instance creation,
or if current number of instances is not less than the maxInstances
for the task.public java.lang.String createNewInstance(java.lang.String workItemID, java.lang.String paramValueForMICreation, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id of a sibling workitemparamValueForMICreation
- the data needed for creating a new instance.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be found.public java.lang.String skipWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.sessionHandle
- the sessoin handlejava.io.IOException
- if the engine can't be found.public java.lang.String suspendWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.sessionHandle
- the sessoin handlejava.io.IOException
- if the engine can't be found.public java.lang.String unsuspendWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.sessionHandle
- the sessoin handlejava.io.IOException
- if the engine can't be found.public java.lang.String rollbackWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id.sessionHandle
- the sessoin handlejava.io.IOException
- if the engine can't be found.public java.lang.String launchCase(java.lang.String specID, java.lang.String caseParams, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification id (see SpecificationData.getID())caseParams
- the case params in XML. i.e.
<data> <firstParam>value</firstParam> <secondParam>value</secondParam> </data>If there are no case params then null should be passed.
sessionHandle
- the session handlejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, YLogDataItemList logData, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML. i.e.
<data> <firstParam>value</firstParam> <secondParam>value</secondParam> </data>If there are no case params then null should be passed.
logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, YLogDataItemList logData, java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification id (see SpecificationData.getID())caseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)caseID
- a pre-selected, unique case identifiersessionHandle
- the session handlejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(java.lang.String specID, java.lang.String caseParams, java.lang.String sessionHandle, java.lang.String completionObserverURI) throws java.io.IOException
specID
- the specification id (see SpecificationData.getID())caseParams
- the case params in XML.sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventjava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, YLogDataItemList logData, java.lang.String completionObserverURI) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventjava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, java.lang.String caseID, YLogDataItemList logData, java.lang.String completionObserverURI) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.caseID
- the pre-selected, unique case identifierlogData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventjava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, YLogDataItemList logData, java.lang.String completionObserverURI, long mSec) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventmSec
- the number of milliseconds to wait before launching the casejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, java.lang.String caseID, YLogDataItemList logData, java.lang.String completionObserverURI, long mSec) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecaseID
- the pre-selected, unique case identifiercompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventmSec
- the number of milliseconds to wait before launching the casejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, YLogDataItemList logData, java.lang.String completionObserverURI, java.util.Date start) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventstart
- the date and time when the case is to be launchedjava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, java.lang.String caseID, YLogDataItemList logData, java.lang.String completionObserverURI, java.util.Date start) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecaseID
- the pre-selected, unique case identifiercompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventstart
- the date and time when the case is to be launchedjava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, YLogDataItemList logData, java.lang.String completionObserverURI, javax.xml.datatype.Duration wait) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventwait
- a Duration object that specifies a period to to wait before
launching the casejava.io.IOException
- if engine can't be foundpublic java.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.lang.String sessionHandle, java.lang.String caseID, YLogDataItemList logData, java.lang.String completionObserverURI, javax.xml.datatype.Duration wait) throws java.io.IOException
specID
- the specification idcaseParams
- the case params in XML.logData
- a list of log data items for logging when the case starts
(can be null)sessionHandle
- the session handlecaseID
- the pre-selected, unique case identifiercompletionObserverURI
- the URI of the IB service that will listen
for a case-completed eventwait
- a Duration object that specifies a period to to wait before
launching the casejava.io.IOException
- if engine can't be foundpublic java.lang.String getCases(java.lang.String specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification id.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be foundpublic java.lang.String getCases(YSpecificationID specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification id.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be foundpublic java.lang.String getAllRunningCases(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if engine cannot be foundpublic java.lang.String getCaseState(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case id.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be foundpublic java.lang.String exportCaseState(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String exportAllCaseStates(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String importCases(java.lang.String xml, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String getCaseData(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case id.sessionHandle
- the session handlejava.io.IOException
- if engine cannot be foundpublic java.lang.String cancelCase(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case id.sessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.util.List<WorkItemRecord> getChildrenOfWorkItem(java.lang.String workItemID, java.lang.String sessionHandle) throws java.io.IOException
workItemID
- the work item id of the parent workitem.sessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public TaskInformation parseTaskInformation(java.lang.String taskInfoStr)
taskInfoStr
- the task information StringgetTaskInformationStr(YSpecificationID, String, String)
public boolean isAdministrator(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session to checkjava.io.IOException
- if the engine cannot be found.public java.lang.String getMITaskAttributes(java.lang.String specID, java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the spec id.taskID
- the task id.sessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String getMITaskAttributes(YSpecificationID specID, java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the spec id.taskID
- the task id.sessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String getResourcingSpecs(YSpecificationID specID, java.lang.String taskID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the specification idtaskID
- the id of the task to get the resourcing specs forsessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String getCaseInstanceSummary(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String getWorkItemInstanceSummary(java.lang.String caseID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case id of the process to get the workitems forsessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String getParameterInstanceSummary(java.lang.String caseID, java.lang.String itemID, java.lang.String sessionHandle) throws java.io.IOException
caseID
- the case id of the process to get the workitems foritemID
- the id of the workitem to get the data params forsessionHandle
- the session handlejava.io.IOException
- if the engine cannot be found.public java.lang.String postToExternalURL(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> params) throws java.io.IOException
url
- the external URL to which the message is postedparams
- a map of attribute-value pairs to post with the messagejava.io.IOException
- if the external URL is invalid or unresponsive.public java.lang.String pollPerfStats(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String stripOuterElement(java.lang.String xml)
stripOuterElement
in class Interface_Client
xml
- the xml string to stripCopyright © 2004-2014 The YAWL Foundation.