Adapter Development Kit 9.12 | webMethods Adapter Development Kit Documentation | webMethods Adapter Development Kit Installation and User’s Documentation | Using the Sample Adapter | Phase 4: Adding Polling Notifications | Configuring and Testing the Polling Notification Nodes | Testing the underBalancePolling Notification Node
 
Testing the underBalancePolling Notification Node
Invoke a Withdraw service or a Transfer service against an account to cause a negative account balance. You create a Withdraw service or a Transfer service similarly to the Deposit service. Perform the following procedure to test the underBalancePolling notification node.
*Invoke the Transfer service against an account to cause a negative account balance.
1. Start Designer.
2. In the Package Navigator, navigate to the TestMyWmSampleAdapter > services folder.
3. Click the EnquiryService service.
4. In the Run menu, select Run As > Run Service .
5. Enter data in the fields of the pop-up menu that appears as follows, and click OK.
Field
Value
AccountNumber
1
In the Results section, the following details appear.
Field
Value
AccountNumber
1
Balance
1000.0
6. Click the DepositService service.
7. In the Adapter Service Editor's TRANSACTION tab, select Withdraw in the Service Name field.
8. Select File > Save.
Note:
To create additional adapter service nodes, repeat this procedure, selecting the appropriate service names, such as Transfer, Withdraw or Clear Cheque.
9. In the Run menu, select Run As > Run Service .
10. Enter data in the fields of the pop-up menu that appears as follows, and click OK.
Field
Value
AccountNumber
1
Amount
1020
11. Search Creating the Flow Service for the underBalancePolling Notification Node.
*The underBalancePolling.log file is created in the Integration Server_directory \instances\<instance_name>\pipeline directory for the notification message.
*This is the file name specified in the fileName parameter in the flow service.
*This polling notification uses the savePipelineToFile service to save the polling notification event to a file.
*A new polling notification event of the same type will overwrite the contents of the corresponding log file.
Note:
No banking event is generated.