After creating a decision table, you can define the business rules that it evaluates. Decision tables use inputs, outputs, rules, and hit policies to determine the outcome of a business decision. Once configured, the decision table can be tested using the built-in simulation feature.
To see an example of a decision table, refer to Decision Table Example.
To configure the decision table:
-
Open the decision table from the Decision Tables drop-down
menu in the right pane.
The decision table is opened as a new tab.
-
Configure the input in the Input column by
double-clicking the column header.
The Input dialog box is displayed:
Inputs define the values that the decision table evaluates. Input values are typically supplied from process variables through task mappings. Each input can define:
- Optional: Custom input name
- An expression using FEEL (Friendly Enough Expression Language) syntax.
- A data type
- Optional: Predefined values
- Optional: Add more input columns using the + button in the table header.
-
Configure the input in the Output column by
double-clicking the column header.
The Output dialog box is displayed:
Outputs define the values returned when one or more rules are satisfied. Output values can be mapped back to process variables and used elsewhere in the workflow.
- Optional: Custom output name
- An expression using FEEL (Friendly Enough Expression Language) syntax.
- A data type
- Optional: Predefined values
- Optional: Add more output columns using the + button in the table header.
-
Add a rule using the + button in the left corner of the
table row.
Each row in a decision table represents a rule. Rules evaluate the supplied input values and determine which outputs should be returned.
Note:When a rule contains multiple input conditions, the conditions are evaluated using an AND operator. All input conditions in the rule must be satisfied for the rule to match.
-
Configure the hit policy from the Hit policy drop-down
menu. The following hit policies are available:
Hit Policy Description UNIQUE Only one rule can match. Multiple matching rules cause a hit-policy violation. ANY Multiple rules may match, but all matching rules must produce the same output. FIRST Multiple rules may match. Only the output of the first matching rule is returned. PRIORITY Multiple rules may match. The output with the highest defined priority is returned. COLLECT Returns all matching outputs. COLLECT SUM Returns the sum of matching outputs. COLLECT MIN Returns the lowest matching output value. COLLECT MAX Returns the highest matching output value. COLLECT COUNT Returns the number of matching outputs. RULE ORDER Returns all matching outputs in rule order. OUTPUT ORDER Returns all matching outputs in output-priority order. -
Optional: Add remarks in the Annotations column.
The Annotations column provides a place to record notes about individual rules. Annotations are intended for process designers and do not affect decision execution. In the generated XML, annotations are stored as rule descriptions.
- Save the decision table.
The table is saved.
You can simulate its behavior using the Simulate button. For more information, see Simulating Decision Table Behavior.