public interface ResponseListener
send
methods of the
Sender
. Later when the message is sent, and a response arrives,
the response will also be given to the response listener.responseArrived
method.responseArrived
method will be called only one
time. After the response arrived, no more messages will be given to the ResponseListener.
If you want to receive other messages (like NotifyMessage
or
PIStateChangedMessage
messages), you must add a ProcessInstanceObserver
to your CreatePIMessage
request when you create a new remote process instance.Sender.send(WfXMLMessage, Partner, Class, boolean)
method for sending your message.Modifier and Type | Method and Description |
---|---|
void |
responseArrived(WfXMLMessage request,
WfXMLMessage response)
Implement this method if you want to create a ResponseListener.
|
void responseArrived(WfXMLMessage request, WfXMLMessage response)
request
- This is the request message that was sent to the partner. You
get it here as parameter again, so that you can get keys, parameters or
whatever out of it. That may be necessary in order to find out which request
message that was exactly.response
- A WfXMLMessage
object holding the response message
for which you were waiting. Use the various getter methods of the message
in order to access the content of the message.@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.