Adapter Development Kit 6.5 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Polling Notifications | Polling Notification Implementation | Specifying Configuration Metadata for Polling Notifications
 
Specifying Configuration Metadata for Polling Notifications
The next step for implementing a polling notification is to create the metadata constructs that users will use for entering data when they create polling notification nodes. To do this, you create metadata parameters appropriate to the function of the polling notification, and describe display and data entry attributes for those parameters.
The example implementation includes three metadata parameters:
Parameter
Description
directory
The directory to monitor.
checkAdded
Indicates whether notifications should be sent when files are added to the specified directory.
checkDeleted
Indicates whether notifications should be sent when files are deleted from the specified directory.
Each parameter has:
*An accessor method (see Example Polling Notification: SimpleNotification, lines 47-49).
*A variable to hold the configured values (lines 38-40).
*A String constant containing the name of the parameter (lines 22-24).
*A set of resource bundle entries with a localizable parameter name and description (as shown previously, in Updating the Resource Bundle).
For more information on metadata parameters, see webMethods Metadata Parameters.
Next, specify the parameters' display and data entry attributes by calling various methods of the WmTemplateDescriptor interface from the service's fillWmTemplateDescriptor method. In the example code, each data entry parameter is placed (in display order) in a single group referenced by the constant NOTIFICATION_SETUP_GROUP. (A constant (instead of a string) names the group because the same value is used in the resource bundle to specify a localizable group name and help URL.)