Using the OnPreNotify and OnPostNotify PeopleCode Events

The OnPreNotify and OnPostNotify service operation handler events enable you to perform pre- and post-processing actions on a service operation.

Use the OnPreNotify event to perform high-level pre-processing on data. Typically, this event is used to truncate the database table(s) if a destructive load, versus an update, is required. Note that you cannot use this event to modify actual message data.

Use the OnPostNotify event to perform actions such as start an application engine program, send an email message to indicate the transaction has been completed, and so on.

When implemented, the Broker handler first processes the OnPreNotify PeopleCode event. Then, the system creates one subscription contract for each message segment. The system processes the subscription contracts in parallel, except for the OnPostNotify contract. The OnPostNotify contract runs only after all subscription contract(s) are completed .