...
- Entity variables. These are used to record persistent data about individuals interacting with rules. Entity variables are identified by the namespace
ent
. KRL programs keep each user's persistent entity variables separate. KRL programs are multi-tenanted automatically. - Application variables. These are used to record persistent data about the application or rule set. Application variables are identified by the namespace
app
.
Entity, application, and request variables share the same syntax and operations. They differ primarily in the scope of their definition. An analogy might help: Entity variables are similar to instance variables, and application variables are similar to class variables in object-oriented languages.
...