public class InterfaceX_EngineSideClient extends Interface_Client implements ExceptionGateway
Modifier and Type | Field and Description |
---|---|
protected static int |
NOTIFY_CANCELLED_CASE |
protected static int |
NOTIFY_CHECK_CASE_CONSTRAINTS |
protected static int |
NOTIFY_CHECK_ITEM_CONSTRAINTS |
protected static int |
NOTIFY_CONSTRAINT_VIOLATION |
protected static int |
NOTIFY_RESOURCE_UNAVAILABLE |
protected static int |
NOTIFY_TIMEOUT |
protected static int |
NOTIFY_WORKITEM_ABORT |
Constructor and Description |
---|
InterfaceX_EngineSideClient(java.lang.String observerURI) |
Modifier and Type | Method and Description |
---|---|
void |
announceCaseCancellation(java.lang.String caseID)
Announced by the engine when a case has been cancelled
|
void |
announceCheckCaseConstraints(YSpecificationID specID,
java.lang.String caseID,
java.lang.String data,
boolean preCheck)
Announced by the engine when a case begins or completes to allow for the
checking of pre & post constraints.
|
void |
announceCheckWorkItemConstraints(YWorkItem item,
Document data,
boolean preCheck)
Announced by the engine when a new workitem gets enabled to allow for the
checking of pre & post constraints.
|
void |
announceConstraintViolation(YWorkItem item)
FOR FUTURE IMPLEMENTATION
|
void |
announceTimeOut(YWorkItem item,
java.util.List taskList)
Announced by the engine when a workitem has reached a deadline.
|
void |
announceWorkitemAbort(YWorkItem item)
Announced by the engine when a work item has been checked out and then
declined (returned) by a service (before completion)
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getScheme()
Indicates which protocol this shim services
|
java.lang.String |
getURI() |
int |
hashCode() |
void |
setURI(java.lang.String uri) |
void |
shutdown()
Called when the Engine is shutdown (servlet destroyed); the listener should
to do its own finalisation processing
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successful
protected static final int NOTIFY_CHECK_CASE_CONSTRAINTS
protected static final int NOTIFY_CHECK_ITEM_CONSTRAINTS
protected static final int NOTIFY_WORKITEM_ABORT
protected static final int NOTIFY_TIMEOUT
protected static final int NOTIFY_RESOURCE_UNAVAILABLE
protected static final int NOTIFY_CONSTRAINT_VIOLATION
protected static final int NOTIFY_CANCELLED_CASE
public InterfaceX_EngineSideClient(java.lang.String observerURI)
public java.lang.String getScheme()
getScheme
in interface ExceptionGateway
public void setURI(java.lang.String uri)
public java.lang.String getURI()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void announceCheckWorkItemConstraints(YWorkItem item, Document data, boolean preCheck)
ExceptionGateway
announceCheckWorkItemConstraints
in interface ExceptionGateway
item
- - the enabled workitemdata
- - the workitem's datapreCheck
- - true if before item execution, false if afterpublic void announceCheckCaseConstraints(YSpecificationID specID, java.lang.String caseID, java.lang.String data, boolean preCheck)
ExceptionGateway
announceCheckCaseConstraints
in interface ExceptionGateway
specID
- - the id of the specfication of which the case is an instancecaseID
- - the id of the casedata
- - the case's datapreCheck
- - true if before item execution, false if afterpublic void announceWorkitemAbort(YWorkItem item)
ExceptionGateway
announceWorkitemAbort
in interface ExceptionGateway
item
- the aborted itempublic void announceTimeOut(YWorkItem item, java.util.List taskList)
ExceptionGateway
announceTimeOut
in interface ExceptionGateway
item
- - the timed out workitem (associated with the timeService)taskList
- - a list of tasks running in parallel with the timedout workitempublic void announceConstraintViolation(YWorkItem item)
ExceptionGateway
announceConstraintViolation
in interface ExceptionGateway
public void announceCaseCancellation(java.lang.String caseID)
ExceptionGateway
announceCaseCancellation
in interface ExceptionGateway
caseID
- - the cancelled casepublic void shutdown()
shutdown
in interface ExceptionGateway
Copyright © 2004-2014 The YAWL Foundation.