Show TOC

Procedure documentationCreating a Rule

Procedure

  1. Open the application in the Object Manager panel.

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

  3. In the Contained Objects tab page that appears, choose Rule object from the Type field and choose Create Object.

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

    • Name

    • (Optional) Short Text

    • (Optional) Text

  5. Choose Create and navigate to object.

    The newly created rule opens in the Object Manager panel.

    Note Note

    If you choose Create button, the created rule object appears under the Contained Objects tab.

    End of the note.
  6. Assign a condition to the rule.

    You can assign a standard type, an existing context data object, an existing expression or create a new expression as the condition.

    1. Use Value Range as Condition

      • Select a Standard Type

        1. Choose Graphical Access (Graphical Access) next to No expression assigned.

        2. In the context menu, choose Start of the navigation path Use Value Range From... Next navigation step Default Objects End of the navigation path and choose the standard type.

      • Select an Existing Context Data Object

        1. Choose Graphical Access (Graphical Access) next to No expression assigned.

        2. In the context menu, choose Start of the navigation path Use Value Range From... Next navigation step Other Context Parameter... End of the navigation path.

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

    2. Use Expression and Data Object as Condition

      • Select an Existing Expression

        1. Choose Graphical Access (Graphical Access) next to No expression assigned.

        2. In the context menu, choose Start of the navigation path Select Condition Next navigation step Select Expression... Next navigation step Select... End of the navigation path.

        3. In the Object Query dialog that appears, enter the name of the expression in the Object Name field and choose Search.

          The expression appears below the Search button.

        4. Select the expression.

      • Select a Standard Data Object

        1. Choose Graphical Access (Graphical Access) next to No expression assigned.

        2. In the context menu, choose Start of the navigation path Select Condition Next navigation step Select Data Object... Next navigation step Default Objects End of the navigation path and choose the data object type.

      • Select an Existing Data Object

        1. Choose Graphical Access (Graphical Access) next to No expression assigned.

        2. In the context menu, choose Start of the navigation path Select Condition Next navigation step Select Data Object... Next navigation step Other Context Parameter... End of the navigation path.

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

    3. Use a New Expression

      1. Choose Graphical Access (Graphical Access) next to No expression assigned.

      2. In the context menu, choose Create Expression....

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

        For more information, see Creating Expressions

      Note Note

      The condition should be a context data object or a nested expression whose value or result can be converted into a Boolean type.

      End of the note.
  7. Assign an action to the rule.

    • Assign Action

      You can either choose an existing action or create a new action.

      • Select an Existing Action

        1. Choose Add next to Then.

        2. In the context menu, choose Start of the navigation path Perform Action Next navigation step Select... End of the navigation path.

        3. In the Object Query dialog that appears, select the action.

      • Create a New Action

        1. Choose Add next to Then.

        2. In the context menu, choose Start of the navigation path Perform Action Next navigation step Create... End of the navigation path.

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

          For more information, see Creating Action Types

    • Assign Value to Context

      • Select an Existing Context Parameter

        1. Choose Add next to Then.

        2. In the context menu, choose Start of the navigation path Assign Value to Context Next navigation step Other Context Parameter... End of the navigation path.

        3. In theContext Query dialog that appears, select the data object.

        4. Enter values for the data object.

      • Assign an Expression

        • Select an Existing Expression

          1. Choose Add next to Then.

          2. In the context menu, choose Start of the navigation path Process Expression Next navigation step Select... End of the navigation path.

          3. In the Object Query dialog that appears, select the expression.

        • Create a New expression

          1. Choose Add next to Then.

          2. In the context menu, choose Start of the navigation path Process Expression Next navigation step Create... End of the navigation path.

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

            For more information, see Creating Expressions

  8. Similarly, add actions to the Else section of the rule.

  9. Activate the rule.

  10. Save the rule.