Referring Rule Sets

Each rule set defined by a model is represented as a separate context function. This function accepts a Data Table of any format as its input and wraps its result into another Data Table to return it as function output. Name of the rule set context function matches the name of the rule set itself.

The rule set function is defined in the model context (or each context the relative model is attached to).

Since context functions always return Data Tables any scalar value returned by a "final" rule expression will be wrapped into a single-cell Data Table. For example, if rule set's expression targeted to Rule Set Result has returned a integer number, the rule set context function will return a single-cell Data Table with an Integer column and one row containing this integer.

If this function is referred to from an expression, it will be necessary to use the cell() expression language function to extract the integer result from the function output table.

Was this page helpful?