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 decision table XML so that you can evaluate your data against it. Decision table XML can be stored anywhere, such as in your form XML, SQL database, or XML repository. When called, this method returns an evaluation function that you can use 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'
});

Capabilities

Parsing

  • DecisionsStatic.Parse: Parses the input and returns a function that can be used to execute the decision table.