Use the following command to send a notification using the APAgent:
APClient.bin --map-data HelloWorld HelloWorld companyadmin 4001 1
The “Hello World!” message should be sent to both the SMTP Email Device and the Text Pager, and should be viewable from the browser. Each Device should display a slightly different message. The email Device should say “Hello Email World!”, the text pager should say “Hello Pager World!”, and the browser should say “Hello Browser World!”.
Additionally, there should be an additional response menu option for both the email and pager specific to that Device. Assuming you use the additional menu option for each Device in the response, the “HelloWorld-4.log” file should look like this:
2006-05-07 15:33:42,147 [processBroker.10] INFO - Processing notifications...
2006-05-07 15:33:42,897 [processBroker.10] INFO - Presentation script called for device = VOICE
2006-05-07 15:33:43,584 [processBroker.10] INFO - Presentation script called for device = BROWSER
2006-05-07 15:33:45,365 [processBroker.10] INFO - Presentation script called for device = EMAIL
2006-05-07 15:33:47,897 [processBroker.10] INFO - Presentation script called for device = TEXT_PAGER
2006-05-07 15:33:58,350 [notificationResolutionEngine.10] INFO - Response script called with response event SUCCESSFUL_DELIVERY
2006-05-07 15:34:00,303 [notificationResolutionEngine.9] INFO - Response script called with response event SUCCESSFUL_DELIVERY
2006-05-07 15:34:30,851 [notificationResolutionEngine.9] INFO - Response script called with response event RECEIVED_RESPONSE
2006-05-07 15:34:30,882 [notificationResolutionEngine.9] INFO - Response from recipient companyadmin: Greeting Email World, we come in peace
2006-05-07 15:34:38,460 [notificationResolutionEngine.9] INFO - Response script called with response event RECEIVED_RESPONSE
2006-05-07 15:34:38,492 [notificationResolutionEngine.9] INFO - Response from recipient companyadmin: Greeting Pager World, we come in peace
Next topic: Annotated Example Part Five