When designing your eSpace, you are allowed to handle System Events of the OutSystems Platform and execute business rules at specific moments of the application life cycle as, for example, the preparation of session variables when an end-user logs in to the application.

How to Add an Action to Handle a System Event:

  1. In the eSpace tree, under the Logic layer, right-click on the Actions folder, and select the action under Add System Event;

  1. Design the behavior of the system action in the Action flow, through a specific editor.

Each System event has a specific action that handles it:

Example: use this action to prepare session variables when an end-user logs in to the application.

Learn more about the OnSessionStart Action.

Example: use it to use a custom IP address request validation.

Learn more about the OnBeginWebRequest Action.

Example: use it to troubleshoot and do simple customizations.

Learn more about the OnBeforeRequest Action.

Example: use it to troubleshoot and do advanced customizations.

Learn more about the OnBeforeRequestAdvanced Action.

Example: use it to troubleshoot and do simple customizations.

Learn more about the OnAfterResponse Action.

Example: use it to troubleshoot and do advanced customizations.

Learn more about the OnAfterResponseAdvanced Action.

Example: use it to add custom authentication to exposed REST APIs.

Learn more about the OnAuthentication action.

Example: use it to preprocess REST API requests.

Learn more about the OnRequest action.

Example: use it to customize REST API responses.

Learn more about the OnResponse action.

Example: use this action to log the delivery status of SMSs that are sent by the application.

Learn more about the OnDeliveryReport Action;

Example: use this action to log SMSs that are received by the application.

Learn more about the OnMobileOriginatedMessage Action;

Example: use this action to log SMSs that are sent by the application.

Learn more about the OnMobileTerminatedMessage Action;

Explicitly Execute an Action that Handles a System Event

If you want to explicitly execute one of these actions in an action flow simply do one of the following:

See Also

Overview of Designing Actions | Execute an Action in an Action Flow