Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Listener Notifications | Synchronous Listener Notification Classes
 
Synchronous Listener Notification Classes
The following figure shows the classes provided by the ADK to support synchronous listener notifications.
Create a synchronous listener notification class by extending com.wm.adk.notification.WmSyncListenerNotification base class. The examples in this section do not implement a synchronous notification, so the figure in this section only shows a placeholder class. A synchronous notification calls the WmSynchronousNotification.invokeService method, passing it a WmRecord object containing data consistent with the output signature of the notification node.
Synchronous listener notifications are expected to define both an input and output signature. The terms input and output are relative to the notification. The output signature specifies the format of the data that the notification places on the pipeline prior to invoking the service associated with the synchronous notification. The input signature describes the data that the notification expects to find on the pipeline after the invoked service has completed processing.
The service invoked by WmSynchronousNotification.invokeService method is specified at design time in the notification node data. When this service is invoked, it executes on a separate thread (and therefore in a different transactional context) from the listener. When the invoked service completes, Integration Server extracts the data on the pipeline that is identified in the notification node's input signature and delivers that data as a WmRecord wrapped in the SyncNotificationResults object returned by invokeService method.