The OnPreNotify handler executes on the subscribing node prior to the creation and execution of subscription contracts. In the PeopleSoft Service Operation Handler definition, this handler type is designated by Handler ID PRNF and labeled “On Pre Notify”.
While standard OnNotify subscription handlers execute per contract to process application business logic, OnPreNotify runs once when the message arrives. It has access to all segments of data in a partitioned or segmented message.
Handlers configured for OnPreNotify must implement the PS_PT:Integration:IPrePostNotification interface:
import PS_PT:Integration:IPrePostNotification;
class MyPrePostHandler implements PS_PT:Integration:IPrePostNotification
method OnPreNotify(&message As Message);
method OnPostNotify(&message As Message);
method OnError(&request As Message);
end-class;
method OnPreNotify
/+ &message as Message +/
/+ Extends/implements PS_PT:Integration:IPrePostNotification.OnPreNotify +/
/* Pre-processing logic before subscription contracts run */
end-method;
method OnPostNotify
/+ &message as Message +/
end-method;
method OnError
/+ &request as Message +/
end-method;
In PeopleTools Application Data Set (ADS) processing, service operation PT_ADS_PROCESS registers handler class ADS_SYSTEM:PT_ADS_PROCESS for both pre-notification and post-notification events.
In OnPreNotify, it calls ADSTableTruncation() to ensure staging tables are cleared before the inbound dataset contracts run:
import PS_PT:Integration:IPrePostNotification;
class PT_ADS_PROCESS implements PS_PT:Integration:IPrePostNotification
method PS_ADS_PROCESS();
method OnPreNotify(&message As Message);
method OnPostNotify(&message As Message);
end-class;
/* Constructor */
method PS_ADS_PROCESS
end-method;
method OnPreNotify
/+ &message as Message +/
/+ Extends/implements PS_PT:Integration:IPrePostNotification.OnPreNotify +/
/* Truncate ADS staging tables prior to contract execution */
&message.ADSTableTruncation();
end-method;
method OnPostNotify
/+ &message as Message +/
/+ Extends/implements PS_PT:Integration:IPrePostNotification.OnPostNotify +/
Local boolean &bRet;
&bRet = %IntBroker.ADSSync(&message.ParentTransactionId, &message.PubNodeName);
end-method;
Look up any record, field, page, or component, audit security, and monitor Integration Broker across every database — in seconds.
A web console built for the PeopleSoft community — operational monitoring, security auditing, and metadata browsing in one tool.
On-demand security and operational reports for your PeopleSoft environment — no client install required.
Research any PeopleSoft object and monitor system health from a single browser tab — no App Designer, no SQL.
Chris Malek is a PeopleTools® Technical Consultant with over two decades of experience. 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.