|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReplyHandler
This interface supports an asynchronous mode of operation. A reply handler implementation has to be provided for methods that support reply handler parameters.
A client that uses these API methods has to create an object that implements the ReplyHandler interface so that the Human Task Manager knows where to send the results of operation. When a task that was started with a reply handler reaches an end state, the Human Task Manager calls replyResult() or replyException() depending on the result of processing. It is the responsibility of the implementation of this interface to perform the necessary actions in order to inform the caller about the result of processing.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
replyException(TKIID tkiid,
TaskException faultException)
Signals the unsuccessful processing of a task. |
void |
replyResult(TKIID tkiid,
java.io.Serializable resultMessage)
Signals the successful processing of a task. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void replyResult(TKIID tkiid, java.io.Serializable resultMessage)
replyException()
method.
tkiid
- The ID of the task whose output message is to be returned.resultMessage
- The output message that represents the result of processing.void replyException(TKIID tkiid, TaskException faultException)
replyResult()
method.
tkiid
- The ID of the task whose fault is to be returned.faultException
- The task exception to be reported.
The following children of TaskException
have a special meaning:
TaskBusinessException
is used when the task is completed with a fault message.
The exception carries fault name, fault message, and further fault data. TaskTerminatedException
is used when the task has been terminated with the
terminate()
method. TaskExpiredException
is used when the task has expired. TaskException
can signal
unexpected runtime faults.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |