Create an Expression Rule
-
Click the Rules tab.
-
From the toolbar,
click
.
Specify the Expression Rule's Properties
-
From the
Properties
tab,
enter the values for the different properties:
| Property | Description |
|---|
| 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.
|
- 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.
-
Click the
Thumbnail
tab.
- Optional: Do one of the following:
| Option | Actions |
|---|
| Drop image | Drop an image into the field. |
|---|
| Upload Image | - Click Upload Image.
- Browse to, then select the image.
- 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.
Save the Expression Rule
- Optional: To leave the dialog box open after you save the object, select the Repeat check box.
- Click Create.
Edit an Expression Rule
-
Click the title of the expression rule.
The rule identity card and the Model Version Variability
panel open.
-
To specify the elements to be included in the expression rule, do one of the
following:
| Option | Actions |
|---|
| Enter the expression elements |
- Click in the editor.
- Begin entering the title of the element to populate the list with only those
that contain the entered characters.
- 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. |
-
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.
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
- Numerical: +, -,
=, ≠, <,
>, ≥,
≤
- Parentheses: ( )
The following additional statements are also available:
For more information, see Examples of Expression Rules.
-
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.
-
To remove an element from the expression, select it, then click
.
-
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.
-
Click
Conflict with existing rules.
- To navigate to the conflicting rule, do one of the following:
| Context | Action |
|---|
| List Conflict Rules pane | Double-click the tile of the conflicting rule. |
|---|
| List Conflict Rules pane | From the Shortcut Menu of the conflicting rule, select Open. |
|---|
| Browser toolbar | Click Back in the browser to return to the Rules tab, then select the conflicting rule. |
|---|
| Page breadcrumbs | Click 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.
-
To remove a conflict with a rule that you navigated from, update the rule.
-
Save the changes that you made to resolve the conflict.
-
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.
-
Click Save.
|