|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.yawlfoundation.yawl.engine.interfce.Interface_Client
org.yawlfoundation.yawl.engine.interfce.interfaceB.InterfaceB_EnvironmentBasedClient
public class InterfaceB_EnvironmentBasedClient
An API for custom services to call Engine functionalities regarding workitem management, process progression and case state.
| Constructor Summary | |
|---|---|
InterfaceB_EnvironmentBasedClient(String backEndURIStr)
Constructor. |
|
| Method Summary | |
|---|---|
String |
cancelCase(String caseID,
String sessionHandle)
Cancels the case with caseID. |
String |
checkConnection(String sessionHandle)
Checks whether the connection with the engine is alive, authenticated properly. |
String |
checkInWorkItem(String workItemID,
String data,
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. |
String |
checkInWorkItem(String workItemID,
String data,
String logPredicate,
String sessionHandle)
Checks the work item back into the engine once the task is complete. |
String |
checkOutWorkItem(String workItemID,
String sessionHandle)
Allow a client to obtain ownership of a unit of work. |
String |
checkPermissionToAddInstances(String workItemID,
String sessionHandle)
Determines whether or not a task will allow a dynamically created new instance to be created. |
String |
connect(String userID,
String password)
Connects the user to the engine. |
String |
createNewInstance(String workItemID,
String paramValueForMICreation,
String sessionHandle)
Creates a new instance of a multi instance task. |
String |
getAllRunningCases(String sessionHandle)
|
String |
getBackEndURI()
|
String |
getCaseData(String caseID,
String sessionHandle)
Gets the data of the case |
String |
getCaseInstanceSummary(String sessionHandle)
Gets a summary table of all currently live process instances |
String |
getCases(String specID,
String sessionHandle)
Deprecated. superseded by getCases(YSpecificationID, String) |
String |
getCases(YSpecificationID specID,
String sessionHandle)
Gets the set of active cases in the engine. |
String |
getCaseState(String caseID,
String sessionHandle)
Gets the state description of the case |
List<WorkItemRecord> |
getChildrenOfWorkItem(String workItemID,
String sessionHandle)
Finds out the children of a given work item. |
List<WorkItemRecord> |
getCompleteListOfLiveWorkItems(String sessionHandle)
Returns a list (of WorkItemRecord) of all the work items that are currently active in the engine. |
String |
getCompleteListOfLiveWorkItemsAsXML(String sessionHandle)
Returns an XML string describing all the work items that are currently active in the engine. |
List<WorkItemRecord> |
getLiveWorkItemsForIdentifier(String idType,
String id,
String sessionHandle)
Retrieves a List of live workitems for the case or spec id passed |
String |
getLiveWorkItemsForIdentifierAsXML(String idType,
String id,
String sessionHandle)
Retrieves an XML description of live workitems for the case or spec id passed |
String |
getMITaskAttributes(String specID,
String taskID,
String sessionHandle)
Deprecated. superseded by getMITaskAttributes(YSpecificationID, String, String) - this version should be used for pre-2.0 schema-based specifications only |
String |
getMITaskAttributes(YSpecificationID specID,
String taskID,
String sessionHandle)
Gets an XML representation of the attributes of a multi-instance task. |
String |
getParameterInstanceSummary(String caseID,
String itemID,
String sessionHandle)
Gets a summary table of all data parameters for the workitem of the case specified |
String |
getResourcingSpecs(YSpecificationID specID,
String taskID,
String sessionHandle)
Gets the set of resourcing specifications for the specified task of the specified spec |
String |
getSpecification(String specID,
String sessionHandle)
Deprecated. superseded by getSpecification(YSpecificationID, String) |
String |
getSpecification(YSpecificationID specID,
String sessionHandle)
Gets an XML representation of a workflow specification. |
String |
getSpecificationDataSchema(String specID,
String sessionHandle)
Deprecated. superseded by getSpecificationDataSchema(YSpecificationID, String) |
String |
getSpecificationDataSchema(YSpecificationID specID,
String sessionHandle)
Gets the user-defined data schema for a specification |
String |
getSpecificationForCase(String caseID,
String sessionHandle)
Gets an XML representation of a workflow specification for a specified, currently executing case. |
List<SpecificationData> |
getSpecificationList(String sessionHandle)
Creates a list of SpecificationData objects for the specifications currently loaded into the engine. |
String |
getTaskInformationStr(String specID,
String taskID,
String sessionHandle)
Deprecated. superseded by getTaskInformationStr(YSpecificationID, String, String) - this version should be used for pre-2.0 schema-based specifications only |
String |
getTaskInformationStr(YSpecificationID specID,
String taskID,
String sessionHandle)
Gets an XML representation of information the task declaration. |
String |
getWorkItem(String itemID,
String sessionHandle)
Returns an XML string describing all a current work item. |
long |
getWorkItemExpiryTime(String itemID,
String sessionHandle)
Returns the expiry time of a work item's timer. |
String |
getWorkItemInstanceSummary(String caseID,
String sessionHandle)
Gets a summary table of all completed and live workitems for a case |
List<WorkItemRecord> |
getWorkItemsForCase(String caseID,
String sessionHandle)
Returns the current set of active workitems for a case |
List<WorkItemRecord> |
getWorkItemsForService(String serviceURI,
String sessionHandle)
Returns the current set of active workitems that are associated with a specified custom service |
List<WorkItemRecord> |
getWorkItemsForSpecification(String specName,
String sessionHandle)
Returns the current set of active workitems for a specification |
List<WorkItemRecord> |
getWorkItemsForTask(String taskID,
String sessionHandle)
Returns the current set of active workitems that are instances of a specified task |
boolean |
isAdministrator(String sessionHandle)
Checks if the session has administrative access |
String |
launchCase(String specID,
String caseParams,
String sessionHandle)
Deprecated. superseded by launchCase(YSpecificationID, String, String) |
String |
launchCase(String specID,
String caseParams,
String sessionHandle,
String completionObserverURI)
Deprecated. superseded by launchCase(YSpecificationID, String, String) |
String |
launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI)
Override of launchCase to provide the ability to add a listener for the Case-Completion event |
String |
launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
Date start)
|
String |
launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
Duration wait)
|
String |
launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
long mSec)
|
String |
launchCase(YSpecificationID specID,
String caseParams,
YLogDataItemList logData,
String sessionHandle)
Launches a case instance of the latest version of the specification loaded. |
TaskInformation |
parseTaskInformation(String taskInfoStr)
Parses the XML string and returns a TaskInfo object (easier to manage). |
String |
postToExternalURL(String url,
Map<String,String> params)
A generic method for sending a HTTP POST message, with parameters, to a URL external to the standard YAWL environment |
String |
rejectAnnouncedEnabledTask(String workItemID,
String sessionHandle)
|
String |
rollbackWorkItem(String workItemID,
String sessionHandle)
Rolls back a work item, from 'executing' to 'fired' status. |
String |
skipWorkItem(String workItemID,
String sessionHandle)
Skips a work item. |
String |
stripOuterElement(String xml)
Removes the outermost set of xml tags from a string, if any |
String |
suspendWorkItem(String workItemID,
String sessionHandle)
Suspends a work item. |
String |
unsuspendWorkItem(String workItemID,
String sessionHandle)
Unuspends a work item. |
| Methods inherited from class org.yawlfoundation.yawl.engine.interfce.Interface_Client |
|---|
executeGet, executePost, prepareParamMap, setReadTimeout, successful |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterfaceB_EnvironmentBasedClient(String backEndURIStr)
backEndURIStr - the back end uri of where to find
the engine. A default deployment this value is
http://localhost:8080/yawl/ib| Method Detail |
|---|
public String getBackEndURI()
public String connect(String userID,
String password)
throws IOException
userID - the user id.password - the user password
IOException - if engine cannot be found
public List<WorkItemRecord> getCompleteListOfLiveWorkItems(String sessionHandle)
throws IOException
sessionHandle - the session handle
IOException - if engine can't be found.WorkItemRecord
public String getCompleteListOfLiveWorkItemsAsXML(String sessionHandle)
throws IOException
sessionHandle - the session handle
IOException - if engine can't be found.
public String getWorkItem(String itemID,
String sessionHandle)
throws IOException
itemID - the workitem idsessionHandle - the session handle
IOException - if engine can't be found.
public long getWorkItemExpiryTime(String itemID,
String sessionHandle)
throws IOException
itemID - the workitem idsessionHandle - the session handle
IOException - if engine can't be found.
public List<WorkItemRecord> getWorkItemsForCase(String caseID,
String sessionHandle)
throws IOException
caseID - the case in questionsessionHandle - the session handle
IOException - if engine can't be found.
public List<WorkItemRecord> getWorkItemsForSpecification(String specName,
String sessionHandle)
throws IOException
specName - the specification in questionsessionHandle - the session handle
IOException - if engine can't be found.
public List<WorkItemRecord> getWorkItemsForTask(String taskID,
String sessionHandle)
throws IOException
taskID - the task in questionsessionHandle - the session handle
IOException - if engine can't be found.
public List<WorkItemRecord> getLiveWorkItemsForIdentifier(String idType,
String id,
String sessionHandle)
throws IOException,
org.jdom.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 handle
IOException - if there's a problem connecting to the engine
org.jdom.JDOMException - if there's a problem with xml conversions
public List<WorkItemRecord> getWorkItemsForService(String serviceURI,
String sessionHandle)
throws IOException
serviceURI - the uri of the service in questionsessionHandle - the session handle
IOException - if engine can't be found.
public String getLiveWorkItemsForIdentifierAsXML(String idType,
String id,
String sessionHandle)
throws IOException,
org.jdom.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 handle
IOException - if there's a problem connecting to the engine
org.jdom.JDOMException - if there's a problem with xml conversions
public List<SpecificationData> getSpecificationList(String sessionHandle)
throws IOException
sessionHandle - the session handle
IOException - if engine can't be found.
public String getSpecification(String specID,
String sessionHandle)
throws IOException
specID - the specid.sessionHandle - the session handle
IOException - if the engine can't be found.
public String getSpecification(YSpecificationID specID,
String sessionHandle)
throws IOException
specID - the specid.sessionHandle - the session handle
IOException - if the engine can't be found.
public String getSpecificationForCase(String caseID,
String sessionHandle)
throws IOException
caseID - the identifier of a currently executing case.sessionHandle - the session handle
IOException - if the engine can't be found.
public String getSpecificationDataSchema(String specID,
String sessionHandle)
throws IOException
specID - the specification idsessionHandle - an active session handle
IOException - if the engine can't be found.
public String getSpecificationDataSchema(YSpecificationID specID,
String sessionHandle)
throws IOException
specID - the specification idsessionHandle - an active session handle
IOException - if the engine can't be found.
public String checkOutWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the workitem id.sessionHandle - the sessionhandle
IOException - if the engine can't be found.
public String rejectAnnouncedEnabledTask(String workItemID,
String sessionHandle)
throws IOException
IOException
public String getTaskInformationStr(String specID,
String taskID,
String sessionHandle)
throws IOException
specID - the spec id.taskID - the task id.sessionHandle - the session handle
IOException - if the engine can't be found.
public String getTaskInformationStr(YSpecificationID specID,
String taskID,
String sessionHandle)
throws IOException
specID - the spec id.taskID - the task id.sessionHandle - the session handle
IOException - if the engine can't be found.
public String checkConnection(String sessionHandle)
throws IOException
sessionHandle - the session handle
IOException - if engine cannot be found.
public String checkInWorkItem(String workItemID,
String data,
String logPredicate,
String sessionHandle)
throws IOException
workItemID - the work item id.data - formated data eg. logPredicate - configurable logging string to be logged with the checkinsessionHandle - the session handle
IOException - if engine cannot be found.
public String checkInWorkItem(String workItemID,
String data,
String sessionHandle)
throws IOException
workItemID - the work item id.data - formated data eg. sessionHandle - the session handle
IOException - if engine cannot be found.
public String checkPermissionToAddInstances(String workItemID,
String sessionHandle)
throws IOException
workItemID - the workItemID of a sibling work item.sessionHandle - the session handle
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 String createNewInstance(String workItemID,
String paramValueForMICreation,
String sessionHandle)
throws IOException
workItemID - the work item id of a sibling workitemparamValueForMICreation - the data needed for creating a new instance.sessionHandle - the session handle
IOException - if engine cannot be found.
public String skipWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the work item id.sessionHandle - the sessoin handle
IOException - if the engine can't be found.
public String suspendWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the work item id.sessionHandle - the sessoin handle
IOException - if the engine can't be found.
public String unsuspendWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the work item id.sessionHandle - the sessoin handle
IOException - if the engine can't be found.
public String rollbackWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the work item id.sessionHandle - the sessoin handle
IOException - if the engine can't be found.
public String launchCase(String specID,
String caseParams,
String sessionHandle)
throws 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 handle
IOException - if engine can't be found
public String launchCase(YSpecificationID specID,
String caseParams,
YLogDataItemList logData,
String sessionHandle)
throws 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.sessionHandle - the session handle
IOException - if engine can't be found
public String launchCase(String specID,
String caseParams,
String sessionHandle,
String completionObserverURI)
throws 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 event
IOException - if engine can't be found
public String launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI)
throws IOException
specID - the specification idcaseParams - the case params in XML.sessionHandle - the session handlecompletionObserverURI - the URI of the IB service that will listen
for a case-completed event
IOException - if engine can't be found
public String launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
long mSec)
throws IOException
IOException
public String launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
Date start)
throws IOException
IOException
public String launchCase(YSpecificationID specID,
String caseParams,
String sessionHandle,
YLogDataItemList logData,
String completionObserverURI,
Duration wait)
throws IOException
IOException
public String getCases(String specID,
String sessionHandle)
throws IOException
specID - the specification id.sessionHandle - the session handle
IOException - if engine cannot be found
public String getCases(YSpecificationID specID,
String sessionHandle)
throws IOException
specID - the specification id.sessionHandle - the session handle
IOException - if engine cannot be found
public String getAllRunningCases(String sessionHandle)
throws IOException
IOException
public String getCaseState(String caseID,
String sessionHandle)
throws IOException
caseID - the case id.sessionHandle - the session handle
IOException - if engine cannot be found
public String getCaseData(String caseID,
String sessionHandle)
throws IOException
caseID - the case id.sessionHandle - the session handle
IOException - if engine cannot be found
public String cancelCase(String caseID,
String sessionHandle)
throws IOException
caseID - the case id.sessionHandle - the session handle
IOException - if the engine cannot be found.
public List<WorkItemRecord> getChildrenOfWorkItem(String workItemID,
String sessionHandle)
throws IOException
workItemID - the work item id of the parent workitem.sessionHandle - the session handle
IOException - if the engine cannot be found.public TaskInformation parseTaskInformation(String taskInfoStr)
taskInfoStr - the task information String
getTaskInformationStr(YSpecificationID, String, String)
public boolean isAdministrator(String sessionHandle)
throws IOException
sessionHandle - the session to check
IOException - if the engine cannot be found.
public String getMITaskAttributes(String specID,
String taskID,
String sessionHandle)
throws IOException
specID - the spec id.taskID - the task id.sessionHandle - the session handle
IOException - if the engine cannot be found.
public String getMITaskAttributes(YSpecificationID specID,
String taskID,
String sessionHandle)
throws IOException
specID - the spec id.taskID - the task id.sessionHandle - the session handle
IOException - if the engine cannot be found.
public String getResourcingSpecs(YSpecificationID specID,
String taskID,
String sessionHandle)
throws IOException
specID - the specification idtaskID - the id of the task to get the resourcing specs forsessionHandle - the session handle
IOException - if the engine cannot be found.
public String getCaseInstanceSummary(String sessionHandle)
throws IOException
sessionHandle - the session handle
IOException - if the engine cannot be found.
public String getWorkItemInstanceSummary(String caseID,
String sessionHandle)
throws IOException
caseID - the case id of the process to get the workitems forsessionHandle - the session handle
IOException - if the engine cannot be found.
public String getParameterInstanceSummary(String caseID,
String itemID,
String sessionHandle)
throws 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 handle
IOException - if the engine cannot be found.
public String postToExternalURL(String url,
Map<String,String> params)
throws IOException
url - the external URL to which the message is postedparams - a map of attribute-value pairs to post with the message
IOException - if the external URL is invalid or unresponsive.public String stripOuterElement(String xml)
Interface_Client
stripOuterElement in class Interface_Clientxml - the xml string to strip
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||