Every rule can have an optional trigger. The trigger is the guard that decides if a rule is triggered or not. If a rule does not have a trigger the rule will always be executed.

Every rule has a name. The name is used to identify the rule and should be unique at least in the module.


namestringn/aName of the rule. Use a descriptive name. The name of a rule is similar to the function name in other languages
triggersexpressionn/aAn expression used to evaluate if the rule should be triggered. If the expression is true, the rule will be triggered
TypeFilter, Map, Scriptn/aThe type of rule defined. See below to learn more about rule types.

There are three types of rules: filter rules, mapping rules and script rules.

Nach oben