Create a decision table
Create a business rule of type decision table within the Designer.
-
Navigate to
.
The Business rules page appears.
-
Click
.
A new decision table opens in a new browser tab.
-
The system creates a new decision table with some default properties.
-
By default, the Design tab is selected on the Modeling bar.
-
The Add input and Add output options are available.
-
- In the Properties panel, a default name (New decision table) appears in the Name field. You can change the name of the decision table as required.
- Configure the properties for the decision tree as you do for a business rule. See Properties of a business rule.
-
Create variables for the decision table and set the variables as rule inputs and outputs. Do either of the following:
Using the Variables tab on the modeling bar.
-
On the modeling bar of the decision tree, click Variables and click New.
The New variable dialog box is displayed.
-
Enter a Name for the variable.
By default, the name of the variable becomes the ID of the variable; however, you can change the ID if needed.
-
Select the variable Type, such as Date. (Default: String)
-
To set the variable as input, select Input.
-
To set the variable as output, select Output.
A decision table supports dynamic complex variables as input. These input variables can hold the data from a table field within a document for validation, such as in creating a running total for a column. -
Provide a Value for the variable and click Add and close.
To quickly add another variable without navigating away from the New variable dialog box, click Add another.
The Variables page appears.
-
Similarly, create other variables.
By default, all the variables are sorted on Name and displayed in ascending order. However, you can sort (ascending or descending) on the following columns: Name, ID, Type, Value, Input, and Output.
-
To view the variables of a specific type, on the Type filter, select the variable type, such as Folder. (Default: All)
The Type filter only contains the variable types that exist in the list for the current decision tree.
Using the Add input and Add output options
To directly add input and output variables, do the following:
-
Click Add input.
The New input variable dialog box is displayed.
-
Enter a Name for the variable.
By default, the name of the variable becomes the ID of the variable; however, you can change the ID if needed.
-
Select the variable Type, such as Byte. (Default: String)
-
By default, the Input and Show in table are selected which means, the inputs are displayed in the table.
-
Provide a Value for the variable and click Add.
Similarly, create other input variables, as needed.
-
To create output variables, click Add output.
-
Enter a Name and ID for the variable.
-
Select the variable Type, such as String. (Default: String)
-
Provide a Value for the variable and click Add.
If the output variable is set to String, you can set the Error code or Error code message.
- Click
Add another to add as many variables as needed without
navigating away from the
New variable dialog box, or click
Add and close to add one variable and close the dialog box.
Similarly, create other output variables, as needed.
-
- The input and output variables appear in the table.
-
You can set the order of the input and output variables in a decision table using the
and
. For example, to move an input variable to the previous column, select the variable and click
.
The variable position is re-ordered in the table. When you add/modify a condition, the order is updated, and the change is retained.
-
To add a condition, click
.
The New condition dialog box displays the inputs and outputs.
- Define the condition using the process variables, server variables, and business data for inputs and outputs.
-
Provide the comments in the
Comments box and click
Add.
You can re-order the rows in a decision table using the and .
-
You cannot use expressions as rule outputs.
-
You can add multiple conditions.
-
You can modify and delete the condition. When multiple conditions are added, they can be modified, deleted, and re-ordered.
-
-
To add else condition, on the General properties tab of the decision table, select the check box for
Include else condition. (Default: Clear)
A new else condition row appears in the table.
- When the else condition is enabled, edit the condition, and define the output as needed.
- Release the decision table.