Working with Decision Trees
A decision tree is a decision entity. It uses a tree-like structure to depict a
complex set of rules in an IF Condition THEN Result syntax.
Decision Tree Structure
A decision tree consists of nodes and links. A node can represent the root, a condition (blue color), an assignment result and its assigned result value (green color), or an action result and its action status (green color). A link can be a root link or a condition link. A root node can be linked to one or more condition nodes, and a condition node can be linked to one or more condition nodes or result nodes.
| Element Name | Graphical Representation | Description |
|---|---|---|
| Root Node | The root node is the root of the decision tree. All decision branches start from here. | |
| Root Link | A root link connects the root node with a condition node on the first level. A root link represents an unconditional branch to a condition node and is not evaluated. | |
| Condition | A condition node contains a reference to one input or input/output parameter element. Condition links can branch off of this node. | |
| Condition Link | Three types of condition links exist:
|
|
| Assignment Result Node | An assignment result node contains a reference to one output or
input/output parameter element, an operator, and the assigned result value. The
following types of result values exist:
|
|
| Action Result Node | An action result node contains a reference to the action that is
to be invoked and one of the following action statuses:
|
|
| In Effect Indicator | The in effect indicator shows the date at which a rule is in effect. |
Example
The following table shows two rules that can be modeled in a decision tree:| Rule 1: | IF a customer has customer status silver, THEN this customer gets a discount of 10%. |
| Rule 2: | IF a customer has customer status gold, THEN this customer gets a discount of 20%. |

