We've added the ability to define decision rules using tables to Vom. Tables allow you to assign values to output variables based on the values of multiple input variables, without having to write any formulas.
To use the table, simply choose “Table” when adding a new block to a policy diagram.
The block configures the input and output columns (variables). Each row specifies conditions for each input variable and values for the output variables. When the policy is executed, the first row that meets all the conditions will be selected, and the output variables will receive their respective values.
In this example, the variable `approve` will receive the values “deny” or “approve” according to the values of two input variables `risk_score` and `behavior_score`. The same rule using an assignment block would be much more complicated both to write and to understand.
We hope the table helps build increasingly simple and powerful policies in Vom!
Comentarios