Creating a decision node
Procedure
- Click the Add decision icon
in the
diagram toolbar. - Enter the required information to define your node:
Table 1. Decision node fields View Field Description Details Node name
Enter a unique name for the decision node.
Output type
Associate the decision with a type.
The type assigned to a decision determines its output type. It can either be a simple built-in type, such as Boolean if the output of the decision is true or false, or a custom type.
If you check the Ouput is a list option, the decision can have multiple outputs.
For more information about output types, see Creating data models.
Description
Optionally provide a description for the decision node.
Output variable name
You can set a different output name for your decision. This output name can be used as a variable in the rules and decision tables.
By default, the Same as decision node name option is selected.
Logic Add a business rule.
A business rule is an if-then statement where the
ifis the condition and thethenis the action of the rule. If the condition is met, the action is performed.For more information about business rules, see Working with business rules.
Add a decision table.
A decision table is a tabular representation of related rules, where each row forms a rule and each column represents one condition or one action.
For more information about decision tables, see Working with decision tables.
Define a default value.
A default value is a fallback value that is used when no decision is made by the decision logic.
For more information about default values, see Defining a default value.
Rules are applied in sequence Open the drop-down menu to select an interaction policy to apply to the decision tables and business rules. The interaction policy specifies how the result of a decision is evaluated when more than one rule matches.
By default, the sequential policy is selected.
For more information about interaction policies, see Choosing an interaction policy.