Skip to content

$Decisions

$Decisions provides access to decision table functionality, allowing you to execute decision tables and models within your scripts.

1
const $Decisions;

Remarks

Parsing a Decision Table
Use the $Decisions.Parse method to parse a decision table XML to be able to evaluate your data against that decision table. A decision table XML can be stored anywhere, for example, in your form XML, SQL database, or XML repository. When called, this method returns an evaluation function for you to evaluate your data.
Executing a Process Decision Model
$Decisions also provides access to process decision models for execution.

Calling a decision model: Output content may vary depending on the decision model outputs.

1
2
3
4
var output = $Decisions.MyModel.MyDecision({
    myInput: 'myValue'
    myInput2: 'myValue2'
});