Creating or Editing an Expression Rule

You can use the interactive expression editor to create or edit a complex expression rule.

An expression rule defines valid, invalid, and required selections for specific combinations of variants, variant values, option groups, and options for the model version.

Create expression rules before a model version reaches the Frozen maturity state.

This task shows you how to:

Create an Expression Rule

Before you begin:
  1. Open the model version. For more information, see Opening a Model Version.
  2. Allocate variability to the model version. For more information, see Adding Variability Items to a Model Version.
  1. Click the Rules tab.
  2. From the toolbar, click New > New Expression Rule.

Specify the Expression Rule's Properties

  1. From the Properties tab, enter the values for the different properties:
    PropertyDescription
    Title

    Enter a title for the object.

    Note: By default, the title is the same as the object's name.

    Collaborative Space

    The collaborative space where you want to create the object.

    Only the collaborative spaces in which you have a required responsibility to create this type of object are displayed. If you are a member of only one collaborative space, this field is grayed out.

    This field is preselected based on the credentials specified in your app preferences. Modifying this field impacts only this operation and does not modify your preferences.

  2. Optional: To assign a description to the object, click Show more and enter the description in the Description field.

Optional: Assign an Image to the Expression Rule

When you create an expression rule, you can assign an image to it.

  1. Click the Thumbnail tab.
  2. Optional: Do one of the following:
    OptionActions
    Drop imageDrop an image into the field.
    Upload Image
    1. Click Upload Image.
    2. Browse to, then select the image.
    3. Click Open.

Optional: Bookmark or Classify the Expression Rule

When you create an expression rule, you can add it to a bookmark and a class.

  1. Click the Classifications tab.
  2. To add the object to a bookmark, from the Bookmarks field, do one of the following:
    • Start entering the name of the bookmark and select it from the list.
      Note: Special characters are not supported.
    • Click Browse and select the required classification object.

      You can find, sort, or view information about the different objects.

    For more information, see Social and Collaborative | Structured Collaboration & Collaborative Content | Bookmark Editor Web App.

  3. To add the object to an active class in a library, do one of the following:
    • Start entering the name of the bookmark and select it from the list.
      Note: Special characters are not supported.
    • Click Browse and select the required class.

      You can find, sort, or view information about the different objects.

    Tip: You can manage the values for the properties of the class that you add to this field.

    For more information, see and Social and Collaborative | Structured Collaboration & Collaborative Content | IP Classify & Reuse.

Save the Expression Rule

  1. Optional: To leave the dialog box open after you save the object, select the Repeat check box.
  2. Click Create.

Edit an Expression Rule

  1. Click the title of the expression rule.
    The rule identity card and the Model Version Variability panel open.
  2. To specify the elements to be included in the expression rule, do one of the following:
    OptionActions
    Enter the expression elements
    1. Click in the editor.
    2. Begin entering the title of the element to populate the list with only those that contain the entered characters.
    3. From the list, select a variant, variant value, option, operator, or statement.
    Select the expression elements From the Model Version Variability panel, click to the right of the variant, variant value, option group, or option to add it to the editor at the insertion point, or, if there is no insertion point, at the end of the expression.

    Tips:
    • You can open the Model Version Variability pane to see which variants, variant values, option groups, and options are available for use in the expression rule.
    • You can filter the variability in the Model Version Variability pane. For more information, see Filtering Listed Items by Title.

  3. In the Type Expression... area, enter EVAL and add the standard operators, symbols, values, numbers, and fractions. Combine them with any other statements that you need. To insert variants or variant values, option groups or options, and parameters into the rule, drop them from the Model Version Variability pane.

    Tip: Expand the sections under Language Information. They show examples of how the variability criteria, standard operators, and statements.

    You can use the EVAL statement to do any of the following:

    • Use a parameter value as a condition to select an option from an option group or lock the selection of several options.
    • Use a parameter value (or range) as a condition to select the value of another parameter or restrict its range.
    • Use the selection of a variant value or option as a condition to select the value of another parameter or restrict its range.

    The following standard operators and symbols are available:

    • Boolean: AND, NOT, OR
      Tip: To exclude a variant, variant value, option group, or option from base configurations and product configurations, use the NOT operator and name the element that you want to exclude.
    • Numerical: +, -, =, ≠, <, >, ≥, ≤
    • Parentheses: ( )

    The following additional statements are also available:

    • IMPLY
    • EQUIVALENT

    For more information, see Examples of Expression Rules.

  4. Verify the validity of the expression as you build it.

    Note: Any element in the expression that is not valid in that context is displayed in red. To see a message that explains why an element is invalid, hover over it.

  5. To remove an element from the expression, select it, then click .
  6. Click Save.

Resolve Conflicts with Other Rules

Any conflict between a cell's status and other rules is indicated by the Conflict with existing rules icon displayed in the right side of the page below the identity card. This means that the expression rule conflicts with a matrix rule or another expression rule already defined for the model version.

  1. Click Conflict with existing rules.
  2. To navigate to the conflicting rule, do one of the following:
    ContextAction
    List Conflict Rules paneDouble-click the tile of the conflicting rule.
    List Conflict Rules paneFrom the Shortcut Menu of the conflicting rule, select Open.
    Browser toolbarClick Back in the browser to return to the Rules tab, then select the conflicting rule.
    Page breadcrumbsClick a link in the breadcrumbs at the top of the page.

    Note: If you have unsaved changes in the current expression rule, you are prompted to save them before navigating to the conflicting rule.

  3. To remove a conflict with a rule that you navigated from, update the rule.
  4. Save the changes that you made to resolve the conflict.
  5. To navigate back to the rule that you were defining, click Back in the browser or use the app's breadcrumbs at the top of the page.
  6. Click Save.