trigger postRequest

System trigger for handling any global post processing, such as closing a database or writing a log file.

Declaration: trigger postRequest
Applies to: Application Shell
Activation: Activated after the requested operation and the postActivate trigger. It is only activated if the preRequest trigger returns a positive value, or if no exception was thrown by previous triggers and operations in the activation sequence of a web request.
Default behavior: Executes done.
Behavior upon completion: Setting $status has no effect on subsequent trigger processing.

Description

The postRequest trigger allows global post-processing to be centralized in a single trigger. Generic ProcScript should be placed in this trigger, rather than being duplicated in all the components.

Typical tasks that could be performed in this trigger include using a close ProcScript statement to close the connection with any open databases, appending log records to a log file, or writing the contents of the message frame to the $webinfo output buffer to aid debugging in web applications.

Related Topics