Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Listener Notifications | Listener Notification Implementation | Implementing the supports and runNotification Method
 
Implementing the supports and runNotification Method
This example implementation of the supports method parses the contents of the data object that is originally returned from the listener's waitForData method, into the _parsedValues object variable. Any error in the parsing process indicates that the data object was not a session log entry, and the supports method returns a false value.
The runNotification method implementation assumes that the supports method was successful in parsing the data object, so it does not need the NotificationEvent argument. It merely populates a WmRecord object by inserting the parsed names, using the same key names array that populate the resource domain.
Note:
The runNotification method calls doNotify method to publish the document. The doNotify method has two forms. When calling the WmAsynchronousNotification.doNotify(WmRecord rec, String msgId) form of this method, the length (the number of characters) of the value in msgId should not exceed a particular limit. To determine this limit, call the WmAsynchronousNotification.adapterMaxMessageIdLen() method. There is a fixed number of characters available in Integration Server to hold a notification ID. Of these, the WmART package reserves a certain number to hold a unique ID that it inserts prior to dispatching a notification. The remaining characters are available to you when calling WmAsynchronousNotification.doNotify(WmRecord rec, String msgId). For more information, see the Javadoc for WmAsynchronousNotifcation.doNotify.