Close popover

Table of Contents

Configuring property evaluation in a decision tree

The run-time result of a decision tree can depend on the value of a property or the optional, third parameter of the Property-Map-DecisionTree method.

The following fields are visible when the Allow selection of 'evaluate property' option check box on the Configuration tab is selected. Use them to configure the property used by evaluate nodes in the decision tree.

Field Description
Data Type Choose String, Number, or Boolean to specify how the system evaluates the comparisons defined on the Decision tab when an optional parameter value is supplied in the Property-Map-DecisionTree method.

The Data Type value you select affects comparisons on the Decision tab when the system obtains the input value as a method parameter.

For example, if the method parameter is "007" and the Data Type is String, then a comparison of "007" < "7" is true. If the method parameter is "007" and the Data Type is Number, then the comparison of "007" < "7" is false.

The Data Type is ignored when the property identified in the next field is used at runtime. In that case, comparisons depend on the type of that property.

This Data Type is independent of — and need not match — the type of the property to contain the decision tree result (the first parameter to the Property-Map-DecisionTree method). For example, you can evaluate comparisons of inputs based on numbers and return a result property of type Text.

Property Optional. Enter a Single Value property reference, or a literal value between double quotes. (If your property reference doesn't identify a class, the system uses the Applies To portion of the key to this decision tree as the class of the property).

At runtime, if the value of the third parameter to the Property-Map-DecisionTree method is blank, the system uses the value of this property for comparisons.

Label Optional. Enter a text label for the input property. This label appears on the Decision tab. Choose a meaningful label, as certain users may see and update only the Decision tab.

About Decision Trees

  • About Decision Trees

    Use a decision tree to record if .. then logic that calculates a value from a set of test conditions organized as a tree structure on the Decision tab, with the 'base' of the tree at the left.

  • Creating decision trees

    Calculate a value from a set of properties or conditions where true comparisons can lead to additional comparisons, organized and displayed as a tree structure, by creating a decision tree. For example, you can create a condition that checks whether the location of a job candidate is equal to a specific city. If the condition is true, your application evaluates additional conditions, such as work experience and education.

  • Viewing rule history

    You can view the saved history of a rule to see when it was changed and by whom. You can also compare the current version with a previous version or restore a previous version of a rule for testing purposes, or if the current version is faulty.

  • More about Decision Trees

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.