Creating a decision tree

You create a decision tree by specifying a name and optionally specifying a package.

About this task

Decision trees are composed of branches that have a condition node as their root, and end with actions. Every node is a condition node, except for leaf nodes. Decision trees allow you to manage a large set of rules with some conditions in common but not all.

Procedure

To create a decision tree:

  1. In the Rule Explorer view, click your rule project.
  2. On the File menu, click New  > Decision Tree.
    The New Decision Tree wizard opens.
  3. Optional: Add the decision tree to a rule package:
    1. In the Package field, click Browse.
    2. Expand the folder structure, click the package to which the decision tree should be added, and then click OK.
  4. In the Name field, type a name for the decision tree.
  5. Click Finish.
    The new decision tree is displayed in the Rule Explorer view and the Decision Tree Editor opens. The default decision tree has one condition node, one branch, and one action.

Results

You can now use the decision tree editor to label and define the condition node and action, and to create further nodes, branches and actions as appropriate.