Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring property evaluation in a decision tree

Updated on May 31, 2022

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.

FieldDescription
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.

LabelOptional. 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

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us