Author Info
Chris Malek

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

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

Introducing a small but powerful PeopleSoft bolt-on that makes web services very easy. If you have a SQL statement, you can turn that into a web service in PeopleSoft in a few minutes.



The OnPreNotify event fires if it is registered on the service operation routing
applicable for the transaction. OnPreNotify has access to all segments of data 
in a message, however, this even is typically used to truncate tables or run 
pre-processing prior to creating subscription contracts and executing notifications.

The OnPostNotify event fires if registered on the service operation routing 
applicable for the transaction. After all notifications are in Done or Cancelled
status, the OnPostNotify event runs. Note that only the first segment of data is
available on the message, as the intent it not to serialize the data into a 
rowest, document or xmldoc, but rather to invoke post processing based on the transaction itself.

Please refer to the Integration Broker PeopleBooks for a typical integration 
scenario using these events.

If an error occurs the OnError method, if implemented, is automatically invoked.
To view the exception type, use the Message object to retrieve the Exception 
object (&Message.IBException). Please see the PeopleCode Language Reference 
PeopleBook for more information about the Exception class. 

interface IPrePostNotification
   method OnPreNotify(&message As Message);
   method OnPostNotify(&message As Message);
   method OnError(&request As Message);