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 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