Show TOC

Procedure documentationCreating a Decision Tree Expression

Procedure

  1. Open the application in the Object Manager panel.

  2. Under the Detail section, choose the Contained Objects tab.

    The Contained Objects tab page appears.

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

  4. In the Object Creation dialog box that appears, choose Decision Tree in the Type field.

  5. Enter the following data:

    • Name

    • (Optional) Short Text

    • (Optional) Text

  6. Choose Create and 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 Contained Objects tab.

    End of the note.
  7. Choose the result type. You can select return value or perform action.

    • Select Return Value

      1. Choose Return Value in the Result Type field.

      2. Assign the result data object.

        You can assign a standard data object, an existing data object or a new data object.

        • Select a Standard Type

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Default Objects and choose the data object type.

        • Select an Existing Data Object

          1. Choose Graphical Access (Graphical Access).

          2. In the context menu, choose Select....

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

          3. In the Object Creation dialog box that appears, create the data object.

            For more information, see Creating Data Objects

          Note Note

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

          End of the note.
  8. Assign a root node to the decision tree. You can choose direct input, an existing expression or a new expression.

    • Select Direct Input

      1. In the context menu of the node, choose Start of the navigation path Set Condition Next navigation step Direct Input End of the navigation path.

      2. Choose Graphical Access (Graphical Access) to define the incoming parameter.

        You can choose a standard type, an existing data object or an expression.

        • Select a Standard Type

          • In the context menu, choose Default Objects and select the standard type.

        • Select an Existing Data Object

          1. In the context menu, choose Other Context Parameter....

          2. In the Context Query dialog box that appears, select the data object.

        • Select an Existing Expression

          1. In the context menu, choose Expressions.

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

      3. Choose the comparison operator and enter values.

      4. Choose Done.

    • Select an Existing Expression

      1. In the context menu of the node, choose Start of the navigation path Set Condition... Next navigation step Select... End of the navigation path.

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

    • Create a New Expression

      1. In the context menu of the node, choose Start of the navigation path Set Condition... Next navigation step Create... End of the navigation path.

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

        For more information, see 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.

  9. Add a condition or a 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 Result

      1. In the context menu of the positive child node, choose Start of the navigation path Set Result... Next navigation step Select... End of the navigation path.

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

    • Assign a New Expression as a Result

      1. In the context menu of the positive child node, choose Start of the navigation path Set Result... Next navigation step New... End of the navigation path

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

        For more information, see Creating Expressions

    • Choose Direct Input

      1. In the context menu of the node, choose Start of the navigation path Set Condition Next navigation step Direct Input End of the navigation path.

      2. Choose Graphical Access (Graphical Access).

        You can choose a standard type, an existing data object or an expression.

        • Select a Standard Type

          • In the context menu, choose Default Objects and select the standard type.

        • Select an Existing Data Object

          1. In the context menu, choose Other Context Parameter....

          2. In the Context Query dialog box that appears, select the data object.

        • Select an Existing Expression

          1. In the context menu, choose Expressions.

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

      3. Choose the comparison operator and enter values.

      4. Choose Done.

    • Assign an Existing Expression as a Condition

      1. In the context menu of the negative child node, choose Start of the navigation path Set Condition... Next navigation step Select... End of the navigation path

      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 negative child node, choose Start of the navigation path Set Condition... Next navigation step Create... End of the navigation path

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

        For more information, see Creating Expressions

      Note Note

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

      • All leaf nodes have to be result nodes.

      End of the note.
  10. Activate the expression.

  11. Save the expression.