public interface InterfaceBClient
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
allocateCaseID()
Returns the next available caseID to be used when launching a new case where this is required to be known
via the launch request.
|
void |
checkElegibilityToAddInstances(java.lang.String workItemID) |
void |
completeWorkItem(YWorkItem workItem,
java.lang.String data,
java.lang.String logPredicate,
WorkItemCompletion flag) |
YWorkItem |
createNewInstance(YWorkItem workItem,
java.lang.String paramValueForMICreation) |
java.util.Set<YWorkItem> |
getAllWorkItems()
Returns a set of all work items, regardless of state, from the engine.
|
java.util.Set<YWorkItem> |
getAvailableWorkItems()
Returns a set of all availkable workitems from the engine.
|
java.lang.String |
getCaseData(java.lang.String caseID)
Returns an XML representation of the current net data of the case corresponding
to caseID.
|
java.util.Set |
getChildrenOfWorkItem(YWorkItem workItem) |
YTask |
getTaskDefinition(YSpecificationID specificationID,
java.lang.String taskID)
Returns the task definition, not the task instance.
|
YWorkItem |
getWorkItem(java.lang.String workItemID) |
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.
|
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.
|
void |
rollbackWorkItem(java.lang.String workItemID) |
YWorkItem |
startWorkItem(YWorkItem workItem,
YClient client) |
YWorkItem |
suspendWorkItem(java.lang.String workItemID) |
void registerInterfaceBObserver(InterfaceBClientObserver observer)
observer - void registerInterfaceBObserverGateway(ObserverGateway gateway) throws YAWLException
gateway - YAWLExceptionjava.util.Set<YWorkItem> getAvailableWorkItems()
java.util.Set<YWorkItem> getAllWorkItems()
YWorkItem startWorkItem(YWorkItem workItem, YClient client) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
void completeWorkItem(YWorkItem workItem, java.lang.String data, java.lang.String logPredicate, WorkItemCompletion flag) throws YStateException, YDataStateException, YQueryException, YPersistenceException, YEngineStateException
void rollbackWorkItem(java.lang.String workItemID)
throws YStateException,
YPersistenceException,
YLogException
YWorkItem suspendWorkItem(java.lang.String workItemID) throws YStateException, YPersistenceException, YLogException
YWorkItem getWorkItem(java.lang.String workItemID)
java.lang.String getCaseData(java.lang.String caseID)
throws YStateException
caseID - to retrieve net data ofYStateExceptionjava.lang.String launchCase(YSpecificationID specID, java.lang.String caseParams, java.net.URI completionObserver, YLogDataItemList logData) throws YStateException, YDataStateException, YPersistenceException, YEngineStateException, YLogException, YQueryException
specID - the specification id.caseParams - the XML string of the case params (can be null).completionObserver - the observer for completion events (can be null).YStateExceptionYDataStateExceptionYPersistenceExceptionYEngineStateExceptionYLogExceptionYQueryExceptionjava.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, YPersistenceException, YEngineStateException, YLogException, YQueryException
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)YStateExceptionYDataStateExceptionYPersistenceExceptionYEngineStateExceptionYLogExceptionYQueryExceptionjava.lang.String allocateCaseID()
throws YPersistenceException
YPersistenceExceptionvoid checkElegibilityToAddInstances(java.lang.String workItemID)
throws YStateException
YStateExceptionYWorkItem createNewInstance(YWorkItem workItem, java.lang.String paramValueForMICreation) throws YStateException, YPersistenceException
YStateExceptionYPersistenceExceptionjava.util.Set getChildrenOfWorkItem(YWorkItem workItem)
YTask getTaskDefinition(YSpecificationID specificationID, java.lang.String taskID)
specificationID - the specification idtaskID - the task idCopyright © 2004-2014 The YAWL Foundation.