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 Asynchronous Listener Notifications
 
Run-Time Processing of Listeners and Asynchronous Listener Notifications
The following diagram and steps illustrate what happens when a listener receives a message from a topic and passes the message to an asynchronous 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 asynchronous listener notification publishes a document that will be used by the Broker or local trigger later.
5
The listener gets the next message from the topic, and the adapter repeats steps 1 through 4.