The OnNotify event is triggered when an Asynchronous event is subscribed to. 99% of the time, you will use this for Asynchronous service operation and you can generally ignore the other events types.
It takes the message data sent by the publishing nodes and does something with it. It is generally just PeopleCode that does SQL inserts or invokes a CI. It does not return any data because the client is not waiting for a response (ie Asynchronous)
import PS_PT:Integration:INotificationHandler;
class asyncUtestOnNotifyHandler implements PS_PT:Integration:INotificationHandler
method OnNotify(&MSG As Message);
end-class;
method OnNotify
/+ &MSG as Message +/
/+ Extends/implements PS_PT:Integration:INotificationHandler.OnNotify +/
Local XmlDoc &xmlDocInBound;
Local XmlNode &requestRootNode;
&xmlDocInBound = &MSG.GetXmlDoc();
end-method;
Chris Malek is a PeopleTools® Technical Consultant with over two decades of experience working on PeopleSoft enterprise software projects. He is available for consulting engagements.
Work with ChrisSWS turns SQL into production REST APIs — ready for AI, modern apps, and partner integrations. One install, unlimited potential.
A powerful PeopleSoft bolt-on that makes REST web services easy. You bring the SQL, SWS handles the rest.
Traditional PeopleSoft web services cost $3,600–$13,000 each to develop. SWS deploys production REST APIs in under 5 minutes through configuration alone.
Turn PeopleSoft data into clean REST APIs for AI integrations, modern applications, and vendor data feeds. Configuration-driven — no PeopleCode required.