Creating a Notification PeopleCode

To create a notification PeopleCode:

  1. Select Go, and then PeopleTools, and then Application Designer.

  2. Create an application package and an application class that implements PS_PT: Integration: INotificationHandler interface.

    For a subscription, you use the INotificationHandler application class and the OnNotify method, and optionally use the OnError method for error handling.

    Note:

    This application package PeopleCode is tied to the TREE_CHANGE service operation through a service operation handler.

This example shows an application class that is used to subscribe to TREE_CHANGE service operation (1 of 2).

Example of creating notification PeopleCode (1 of 2)

This example shows an application class that is used to subscribe to TREE_CHANGE service operation (2 of 2).

Example of creating notification PeopleCode (2 of 2)

In the previous example, TREE_CHANGE_SUB_TEST application class has three methods. The constructor, TREE_CHANGE_SUB_TEST and the event handler, OnNotify are required. TREE_CHANGE_SUB_TEST application class has an extra method LogToFile that is used for testing purposes only. This message records a data retrieved from a message being received.