Create a decision tree
Create a decision tree within the Designer which is a simplified version of a business rule whilst still offering the visual representation of the rule.
-
Navigate to
.
The Business rules page appears.
-
Click
.
A Decision tree - new business rule opens in a new tab.
-
The system creates a new decision tree with some default properties.
-
By default, the Design tab is selected on the Modeling bar.
-
The Start node appears on the canvas.
-
- In the Properties panel, a default name (New business rule) appears in the Name field. You can change the name for the decision tree 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 tree, and set the variables as rule inputs and outputs.
-
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.
Note A decision tree 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.
-
Click
Add.
The Variables page appears.
-
Similarly, create other variables.
By default, all the variables are sorted on Name and displayed in the 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 variables of selected type are displayed.Note The Type filter only contains the variable types that exist in the list for the current decision tree.
-
On the modeling bar of the decision tree, click
Variables and click
New.
-
To set the order in which
TotalAgility
should process the input and output variables, perform the following steps:
- Click the Input/Output order link on the Variables page. The Input/Output variables dialog box is displayed.
- Select the Input or Output tab, and use or .
- Click OK.
-
Define your branching rule by adding the
condition node,
synchronization nodes and an end node.
Note
-
The nodes will be rectangular in shape and are added in a fixed position, that is, you cannot move the node using a mouse.
-
The orientation of nodes is set to vertical without the option to switch or rearrange the nodes.
-
A decision tree only supports automatic activities (except Export and Transfer); it does not support manual activities.
-
The Capture activities are not be available for a decision tree.
-
- Release the decision tree.