Alf code is not executed directly. Rather, it is translated into a UML Activity model, which may then be executed using Cameo Simulation Toolkit. This translation process is known as compilation.

Generally, the compilation of Alf code takes place automatically as you enter and edit the code. Alf code may also be recompiled automatically when you change other UML elements in the model on which it depends. However, sometimes it is necessary to manually initiate recompilation of the Alf code in your model, and you can also turn off automatic recompilation, so that it only happens if you specifically request it.

This section provides some information on the Alf compilation process and how you can control it.