public interface ResponseListener
sendmethods of the
Sender. Later when the message is sent, and a response arrives, the response will also be given to the response listener.
responseArrivedmethod 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
PIStateChangedMessagemessages), you must add a
CreatePIMessagerequest when you create a new remote process instance.
Sender.send(WfXMLMessage, Partner, Class, boolean)method for sending your message.
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.
WfXMLMessageobject 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.27594 Copyright © 2001-2020 Groiss Informatics GmbH. All Rights Reserved.