Declarations
Definition
By defining a declaration, you introduce a new variable to use in a rule or condition.
A variable that is not first declared, cannot be used, as it is unknown in RuLa.
Examples of declarations:
You need to declare a variable in every rule or condition you write.
The Impact of a Declaration
How you formulate a declaration, has its impact on what a rule will be about. If, on a document, you declare these variables
that document will need to contain one contract and one person.
Alternatively, if you declare
that document will be about exactly one person. In a case that involves not one but three people, the system will require this document three times: once for each person in the case.
However, if you declare
on a document, that document can contain all three people in the case. It will only be required once.
Last updated