Working with branches
You set up branches by setting the value of the condition for the branch, adding other conditions nodes if required, and setting actions.
Decision trees are deprecated
in V8.8.1. This feature will be removed in a future release of the
product. See Deprecated features for migration
details.
When you create a condition node (see Declaring condition nodes), it has an empty branch stemming from it. You must set up this branch and any other branches that you add. For each branch, you must set the value of the condition for the branch and set actions. If required, you can also add other condition nodes.
Set up a branch
You set up a branch as follows:
| Action | Procedure |
|---|---|
| Set the value of the condition for the branch |
|
| Set the actions of the branch |
When you have set the first action, you can add other actions
to the branch by clicking You can remove individual actions from the set of actions by selecting the action in the editor and clicking the X next to it. |
| Add other condition nodes you want to include in the branch | To add a condition node to the branch, select the branch (either
the arrow or the actions) and click |
Add branches
You must set up the branches for every branch that you add to your tree. You can add branches in various ways:
| Branch | Description |
|---|---|
| Single branch | Select the condition node and then click |
| Otherwise branch | Select the condition node and then click An ‘Otherwise’ branch caters for the case where none of the other possibilities for that condition are correct. You can remove the ‘Otherwise’ status by clicking the same icon that you used to set it. |
| Multiple branches | Select the condition node and then click You can create multiple branches only if the selected condition node allows it, that is, if a predefined list of items already exists. For example, the loan grade is ‘A’, ‘B’, ‘C’, or ‘D’. |
| Duplicate a branch | You can add a branch by duplicating an existing one and
then modifying the new one. To duplicate an existing branch, select
the branch and then click If the overlap check is active for the condition node, you get an error for both branches until you modify one of them. |
Delete branches
You
delete a branch by selecting the branch (the arrow or the actions)
and then clicking
in the
toolbar.
When you delete a branch, it immediately deletes any condition nodes and any subbranches that stem from them.