Skip to main content

Default definitions

The system.alfa file serves as a common foundation for all ALFA projects, providing essential declarations and definitions that are crucial for the language's operation. It is automatically generated when a new ALFA file is saved with the .alfa extension and is placed in the currently open project folder unless it already exists there.

Purpose and contents

The primary purpose of the system.alfa file is to provide standard data types, functions, and algorithms from the XACML standard. These predefined elements are essential for building and utilizing ALFA policies, as they form the building blocks of complex authorization scenarios.

Automatic inclusion

The system.alfa file is automatically included in every ALFA project, ensuring that its declarations are always accessible. This is achieved through an implicit import of the System namespace, which encapsulates all the definitions within the system.alfa file. As a result, the process of using these standard components is simplified and the need for explicit imports eliminated.