Phase 4: Adding Polling Notifications
In this phase, the adapter includes the definition for a polling notification template that you use to configure polling notification nodes. These nodes will poll the Sample Server to determine whether checks have cleared or bounced, or whether accounts have negative balances. This section describes how to:
![*](chapterTOC_bullet.png)
Use the template to configure two polling notification nodes (one for check clearing/bouncing, the other for negative balances).
![*](chapterTOC_bullet.png)
Create an
Integration Server trigger and a flow service for each polling notification node.
The notifications will publish their result documents to the triggers. Upon receiving a document generated by the polling notification, the trigger causes the
Integration Server to invoke a flow service registered with the trigger to process the document's data. In the Sample Adapter, the flow service invokes the pub.flow:savePipelineToFile service. This service simply saves the polling notification event (the contents of the pipeline) to a file. Typically, this service is used as a debugging tool. It is provided here simply to demonstrate the use of the notification. In a real adapter, you would typically perform some kind of action with the notification data. See
Creating the Trigger for the
underBalancePolling Notification Node and
Creating the Flow Service for the
underBalancePolling Notification Node.