Adapter for Salesforce 8.2 | webMethods Adapter for Salesforce Documentation | webMethods Adapter for Salesforce Installation and User’s Documentation | Overview of webMethods Adapter for Salesforce | Adapter Listeners and Listener Notifications | Run-Time Processing of Listeners and Listener Notifications | Run-Time Processing of Listeners and Synchronous Listener Notifications
 
Run-Time Processing of Listeners and Synchronous Listener Notifications
The following diagram and steps illustrate what happens when a listener receives a message from a topic and invokes a synchronous listener notification.
Step
Description
1
When there is activity on the Salesforce object defined in the SOQL for a topic, the Salesforce.com account checks if there is an active listener for the topic. If an active listener is available, Salesforce.com sends the message (which is the result of executing the SOQL statement) to the listener.
2
The listener receives the message from the topic.
3
The listener checks if there is an active listener notification associated with it. If an active listener notification is available, the listener passes the message to the notification. If no notification is associated with the listener or if all associated notifications are disabled, the message is lost. If there are multiple notifications associated with the listener, any one of them (randomly) can get the message.
4
The synchronous listener notification creates the following documents:
*Request document. The notification sends the Request document as input to the service that you selected when you configured the notification.
*Reply document. The specified service processes the message and returns the Reply document to the adapter.
5
The synchronous listener notification invokes the configured Integration Server service by passing the request and reply documents as input parameters. The reply document is not used by the listener notification.