Show TOC

Procedure documentationCreating a Decision Tree Expression Locate this document in the navigation structure

Procedure

  1. In the Object Manager panel, under the Detail section, choose the Assigned Objects tab.

    The Assigned Objects tab page appears.

  2. Choose Expression from the Type field and choose Create Object.

  3. In the Object Creation dialog box that appears, enter the following data:

    • Name

    • Short Text

    • Text

  4. Choose Decision Tree in the Type field.

  5. Choose Create & Navigate To Object.

    The newly created decision tree expression appears in the Object Manager panel.

    Note Note

    If you choose Create the decision table expression appears under the Assigned Objects tab.

    End of the note.
  6. Under the Detail section, assign the result data object. You can assign a standard data object, an existing data object or a new data object.

    This graphic is explained in the accompanying text.

    • Select a Standard Type

      1. Choose Graphical Access (Graphical Access).

      2. In the context menu, choose Select Standard Type and choose the data object type.

    • Select an Existing Data Object

      1. Choose Graphical Access (Graphical Access).

      2. In the context menu, choose   Select Result Data Objects   More Result Data Objects  .

      3. In the Object Query dialog box that appears, select the data object and choose Select.

    • Create a New Data Object

      1. Choose Graphical Access (Graphical Access).

      2. In the context menu, choose Create Data Object.

        More information: Creating Data Objects

      Note Note

      The result data object can be an element, a structure or a table data object.

      End of the note.
  7. Assign a root node to the decision tree. You can assign an existing expression or a new expression.

    • Select an Existing Expression

      1. In the context menu of the node, choose   Node Actions   Assign condition on node   Select existing expression   More Expression...  .

      2. In the Object Query dialog box that appears, select the expression and choose Select.

    • Create a New Expression

      1. In the context menu of the node, choose   Node Actions   Assign condition on node   Create new expression...  .

      2. In the Object Creation dialog box that appears, create the expression.

        More information: Creating Expressions

        Note Note

        The root node can only be a condition.

        End of the note.

        The selected expression is set as the root node and two child nodes appear under the root node.

        This graphic is explained in the accompanying text.

  8. Add conditions and result to the child node. You can assign an existing expression or a new expression to the child node depending upon the outcome of the condition in the root node.

    • Assign an Existing Expression as a Condition

      1. In the context menu of the positive child node, choose   Node Actions   Assign condition on node   Select existing expression   More Expression...  

      2. In the Object Query dialog box that appears, select the expression and choose Select.

    • Assign a New Expression as a Condition

      1. In the context menu of the positive child node, choose   Node Actions   Assign condition on node   Create new expression...  

      2. In the Object Creation dialog box that appears, create the expression.

        More information: Creating Expressions

    • Assign an Existing Expression as a Result

      1. In the context menu of the negative child node, choose   Node Actions   Assign result on node   Select existing expression   More Expression...  .

      2. In the Object Query dialog box that appears, choose the expression and choose Select.

    • Assign a New Expression as a Result

      1. In the context menu of the negative child node, choose   Node Actions   Assign result on node   Create new expression...  

      2. In the Object Creation dialog box that appears, create the expression.

        More information: Creating Expressions

        Note Note

        • There is no restriction to the level of nodes that you can create in the decision tree.

        • The last node should always be a result

        End of the note.
  9. Save the expression.