Inference executes from top to bottom through the rules, and all rules will be executed. For each rule, the condition clause is considered by evaluating each condition it contains. If the condition evaluates to true then the next condition in that clause is considered (ANDs), if any condition evaluates to false then the rule is bypassed. If the variable object referenced within a condition does not have a value then object inference is performed on that variable object. If all the conditions of a rule are satisfied then the Decision Rules object is set with the outcome values defined for that rule and any script is then executed.
There can be one or many rules within a Decision Rules object. Rules consist of conditional statements which if evaluated to true will assign the outcome values associated with that rule and then run any script if present.
If conditions aren’t used in a rule, the rule abbreviates to using a SET statement where just outcome values are assigned. If conditions are used, then IF statements are used (and possibly ANDs) and the outcome values are assigned in the THEN clause.
Allows multiple rules to be built to set the Decision Rules object’s outcome values.
There are certain truths or rules when building Decision Rules:
A Decision Rule Object in the Viabl.ai Platform has at least one rule and each rule would generally have at least one condition. The conditions can be added, removed, or edited via the Decision Rules Editor. Depending on the type of the variable object used in the condition will determine which editor will be opened and the object edited directly within.
The objects that can be used are as follows:
The types of these objects that can be used are:
As Decision Rules are multiselect, each rule is executed and if all the conditions for that rule are satisfied then the outcome values of that rule are appended to the outcome value for the Decision Rule object. Therefore, it is possible that even after all the rules have been evaluated the Decision Rules object could have the outcome value of “Empty”.
Decision Rules can be converted to a Decision Table object. If this is the case Decision Table inference will be used. Conversely, it is also possible to convert a Decision Table to a Decision Rules object.