Back Forward Decision Tree form
Completing the Results tab

About Decision Tree rules

 zzz Show all 

Completing this tab is optional. To restrict the possible result values for a decision tree to one of a fixed list of non-null constant values, enter the result values here in any order.

Fields on this tab also affect the capabilities and presentation of the Decision tab. You can add or remove restrictions and limit which functions can be referenced.

NoteIf the Redirect this rule check box is selected, the system at runtime ignores all the fields on this Decision Tree form other than the rule name, rule resolution details, and the value in the Circumstance Value field.

TipThe basic format of the Decision Tree form is useful for those decision tree rules that are to be delegated to non-developer users.

 zzz Allowed results

Field

Description

Allowed Values Property

SmartPromptOptional. Select a property in the Applies To class (or a parent class) that offers through the Table Edit tab, a list of values that are allowed results for this decision tree. Other aspects of this property may or may not be relevant to the rule.

Allowed Results

Append RowOptional. You can list allowed results and associate each with a set of property value changes that occur when this result is computed at runtime. If the Allowed Values Property field is not blank, values you list here supplement values provided by that property.

(1..)

SmartPromptIdentify an allowed result value for this rule. Enter a constant of the appropriate type. See Constants in expressions. Do not use quotes around the value.

If the Allowed Values Property field on the Input tab is not blank, select from the drop-down list. The system derives this list from information in the Table Values area of the General tab of that property.

You cannot reference properties, functions, or expressions here.

zzz

Append RowClick to access an optional array of properties and values. Clickzzzto hide this array.

When the decision tree rule evaluates and the value in this row is selected as the results, the system also recomputes the value of the target properties identified in this array. Order is significant.

Sets Properties?

A check button (zzz) indicates that this row includes properties and values. These may be hidden on the form.

A clear button (zzz) indicates that no properties and values are defined for this row.

Property

Append Row SmartPromptOptional. Identify a target property to be updated with a new value. Click the pencil icon (zzz) to review a property rule.

Value

Optional. Enter a value for the property. You can use a property reference, constant, or other forms of an expression here. For guided assistance in entering functions and parameters, click the magnifying glass button (Magnifying glass) to start the Expression Builder.

 zzz Options

These fields control the appearance and capabilities offered by the Decision tab. Changes you make to these values affect only later changes; they do not alter the current Decision tab contents.

Field

Description

Options  
 Advanced  

Click to check all five restrictions. This defines the least restrictive form of the Decision Tree form.

  • Allowed to Change Functions?
  • Allowed to Add Nodes?
  • Allowed to Evaluate Properties?
  • Allowed to Call Decision?
  • Allowed to Take Actions?
 Basic  

Click to clear four check box restrictions:

  • Allowed to Change Functions
  • Allowed to Evaluate Properties
  • Allowed to Call Decision
  • Allowed to Take Actions?

This defines the most restricted form of the Decision Tree form.

Redirect this Rule

This field appears only if this rule is circumstance-qualified. Select to indicate that another circumstance-qualified rule is to execute rather than this rule.

Redirection lets you share the function and processing of circumstance-qualified rules, reducing the need to maintain separate rules that produce the same results. Create the target circumstance-qualified rule before creating any other rules that redirect to the target.

For a redirected decision tree rule, other fields on this Results tab and all fields on the Decision tab are not meaningful. The Pages & Classes tab is not visible.

CautionDon't use rule redirection if the circumstance property is referenced as an input ion the Decision tab of the other circumstance-qualified decision tree rule.

Circumstance Value

This field appears only after you select the Redirect this rule box. Select a value from the list to identify the target of redirection.

TipYou can't redirect a rule to itself. However, use care to avoid creating a circular set of redirections (A to B and B to A). This causes a runtime exception.

Allowed to Change Functions?

Select or clear to indicate whether a developer (or delegatee) can change functions on the Decision tab.

If this box is not selected, they may change only constant values.

Allowed to Add Nodes?

Select or clear to indicate whether a developer (or delegatee) can add nodes to the tree presented on the Decision tab.

If this box is not selected, they may change only the values within the current tree structure.

Allowed to Evaluate Properties?

Select or clear to indicate whether a developer (or delegatee) can select the evaluate option on the Decision tab.

If this box is not selected, they may select only the return, otherwise, and continue options.

Allowed to Call Decision?

Select or clear to indicate whether a developer (or delegatee) can update the rule to include calls to other decision tree rules on the Decision tab.

Allowed to Take Actions?

Select or clear to indicate whether a developer (or delegatee) can view and choose the Take Action option on the Decision tab, for example to set the value of a property.

Functions Allowed

Append Row SmartPromptOptional. If you selected the Allowed to Change Functions? field, enter one or more function alias values to allow functions of that type to be selected by the manager.

Leave this blank to make available all function aliases. These three are often useful:

  • CompareTwoValues — Select to allow only comparisons of dates, numbers, and text strings. If this is the only function you enter, the corresponds to the format produced by the  Basic    button.
  • allEntriesSatisfyCondition — Allows matching a scalar value against all elements of a Value List or Value Group property, or values of a scalar property on all the embedded pages of a Page List or Page Group property.
  • anyEntrySatisfiesCondition — Allows matching a scalar value against elements of a Value List or Value Group property, or values of a scalar property on the embedded pages of a Page List or Page Group property.

NoteThe list shows function alias rules with a Return Type other than void.

Click the pencil icon (Pencil) to review a function alias rule.

Default Function...

If you entered more than one function in the Functions Allowed array, select one to affect the order in which function aliases appear on the Decision tab.

Allowed Action Functions

Append Row SmartPromptOptional. If you selected the Allowed to Take Actions? field, enter one or more of the function alias values to allow appropriate functions to be chosen when the Take Actions option is selected.

Select setPropertyValue as the only entry in this list to support the setting of properties with the Take Actions option.

NoteList only functions alias rules with a Return Type of void here.

Click the pencil icon (Pencil) to review a function alias rule.

 zzz Preset Property Values

You can define a list of property updates that are applied before the system processes information on the Decision tab. At runtime, the system updates property values in the order listed.

Field

Description

Preset Property Values

Append Row

Property SmartPromptOptional. Identify a target property to be updated with a new value.
Value

Enter an expression to compute a new value for the property. For guided assistance in entering functions and parameters, click the magnifying glass button (Magnifying glass) to start the Expression Builder.

zzz About Decision Tree rules