Implement Application Logic
In OutSystems, the logic of your applications is implemented through Actions. While developing your applications, you can create your own custom actions and use the actions OutSystems provides you:
-
OutSystems built-in actions: Actions that are defined by the platform and cannot be modified or inspected. You can use them in your action flows, such as Entity Actions, System Actions, or Role Actions.
-
Custom actions: The actions that you create to define your business rules, fetch data from the database, run integrations with external systems, among other operations.
-
Actions that handle System Events: Actions that run at specific moments of the application life cycle, such as when a web session starts or a mobile app resumes. You are able to design the flow of these actions according to your business rules.
Actions in Reactive Web and Mobile apps
The architecture of Reactive Web and Mobile apps is different from the architecture of Tradtional Web and Service apps and this affects the type of actions available and in which context the logic runs. While in Traditional Web and Service apps all the logic runs on the server, in Reactive Web and Mobile apps some of the logic may run on the server and some logic may run on the client — the user's device.
When developing the logic of your Reactive Web and Mobile apps you must take into account that every time your client side logic needs to execute server side logic, the user's device will make a request to the server and wait for the server response. This communication requires that the user's device is online (connected to the internet).
Handle Exceptions
- Handle and raise exceptions in OutSystems applications.
- Featured Article:
Articles in this Section
- Edit expressions
- Use the expression editor to edit and validate expressions. The expressions editor shows the available elements, for example, variables and functions. It supports autocomplete and suggestions.
- AI-assisted development
- Create your app logic faster with OutSystems AI-assisted development. Use AI-powered suggestions and add logic nodes automatically to your flow and boost your low-code development.
- Actions in Reactive Web and Mobile Apps
- Learn more about the Actions you can create in your Reactive Web and Mobile apps.
- Actions in Web Applications
- Learn more about the Actions you can create and use in your web applications.
- Screen and Block Lifecycle Events
- Screens and Blocks follow a lifecycle composed by a set of stages. Learn what those stages are and you what can do at each one.
- Use a For Each to Iterate a List
- Learn how to use a For Each to iterate a list in your logic.
- Update List Items on a Screen
- Learn how to manipulate a list and update it right away on the screen without having to reload the screen on a traditional web app.
- Use Ajax to Refresh Part of a Screen
- It is possible to update certain parts of the screen without reloading the whole screen, thus improving the end user experience.
- Send an Email From a Web Application
- Learn how to use built-in emails in your web applications.