Contents

OnNotify

The OnNotify event is triggered when an Asynchronous event is subscribed to. 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;

Author Info
Chris Malek

Chris Malek s a PeopleTools® Technical Consultant with over two decades of experience working on PeopleSoft enterprise software projects. He is available for consulting engagements.

Work with Chris
Looking for pain-free PeopleSoft web services?
PeopleSoft Simple Web Services (SWS)

A powerful PeopleSoft bolt-on that makes REST web services easy. You bring the SQL, SWS handles the rest.

  • Go from idea to production in minutes
  • Zero code migrations after install
  • JSON, XML, and CSV output supported
  • No PeopleCode or Integration Broker expertise required