Configuring Update Notification
Update Notification publishes notification of update operations on a database collection. You configure the notifications using Designer.
Be sure to review the sections
Adapter Listeners and Listener Notifications before you configure Update Notifications.
To create a Update Notification
1. In Designer, right-click the package in which the notification should be contained and select New > Adapter Notification.
2. Select the parent namespace, type a name for the adapter notification, and click Next.
3. Select Adapter for MongoDB as the adapter type and click Next.
4. Select the Update Notificaton template and click Next.
5. Select the appropriate Adapter Notification Listener and click Next.
The name of the publishable document associated with this notification is displayed.
6. Click Finish.
For more information about listener notifications and publishable documents, see
Adapter Listeners and Listener Notifications. For more details about the
Integration Server publishable documents, see the
Publish-Subscribe Developer’s Guide for your release.
7. Select the Collection tab and use the following fields:
a. The Collection field displays the collection name that you provide in the MongoDB Collection Listener.
b. Use Sampling Limit to specify the number of sampling documents to be scanned to get the Document Fields.
8. Select the Document Fields tab and perform the following:
a. Use the icon to create new rows and icon to fill in all rows to the table: Field | Description/Action |
Document Fields | Name of the fields from sampling documents that you want to use. |
Field Type | Specifies the MongoDB data type for Document Fields. |
Output Field | Name of the output field based on the Document Fields. |
Output Field Type | Specifies the Java data type. |
9. Use Filter tab for defining the conditions using the following:
a. Use the icon to create new rows and icon to fill in all rows to the table. b. Select a MongoDB operator, separator(left and right parenthesis), and specify values for the following fields:
Field | Description/Action |
AND/OR | Logical operator. |
Document Field | Name of the fields from sampling document that you want to use. |
Input Field | Provide a value for query input during the design time or runtime. |
Field Type | MongoDB data types. |
c. You can also use or icons to change the order of the fields or documents to ensure the parameters are parsed in the correct order. d. Repeat this procedure until you have specified all the parameters.
10. From the File menu, select Save.