Conditional Rules
Conditional rules enable you to control the desired behavior during the choice selection process in the Option filter. Conditional rules use the IF and THEN statements to specify when certain option choices should be included, enabled, or disabled based on the choice selections that the user specified in the Option Filter. For example, if Country = USA, then disable COLOR = GREEN.
|
Conditional rules require a license for the Platform Structures module, an add-on module to Windchill PDMLink. To use conditional rules, you must be a member of the Platform Structures group. If you are not a member of the Platform Structures group, conditional rules are ignored by the system. A site administrator can add a member to the Platform Structures group. For more information, see Adding Users to the Platform Structures Group.
|
Conditional rules consist of two parts – IF and THEN. The IF part describes the selections that trigger a certain action. The IF part contains one or more Boolean expressions that refer to option choices. Expressions are combined by an OR.
|
Conditional rules can refer to option choices that belong to different option pools. This is different for include, exclude, and enable rules where choices must come from the same option pool.
|
The THEN part describes the action that should be applied to a set of choices when the IF expression is evaluated to TRUE. The possible actions are: disable, enable, include.
The rules are evaluated when you specify the choice selection criteria in the Option filter tab of the Edit Filter user interface.
The New Conditional Rule window (see the next figure) is used to enter the IF and THEN statements.
You can create conditional rules within an option pool (global rules) or within an option set (local rules). You can create, edit, and delete conditional rules from the Conditional Rules tab from the Option Pool or the Option Set page (see the next figure). Once created, you can see conditional rules in the Conditional Rules table.
The effect of conditional rules is observed during the Option filtering process. For example, if a conditional rule describes the following logic:
Selecting Color = Blue and Size = Medium causes Material = Plastic to be selected automatically (see the next figure).
Syntax for Creating Conditional Rules
Consider these guidelines for entering conditional rules:
• A conditional rule can have multiple expressions in the IF part. Each row in the If section of the window represents an expression. The OR operator is implied between the rows of expressions. For example, two expressions can be combined in the following IF statement:
[Country = Canada && Language = French] OR [Country = Switzerland && Language = German]
• The conditional rule can have multiple THEN statements. For example:
[Country = Canada && Language = French] OR [Country = Switzerland && Language = German] --> select (Color = Red, Size = Medium), enable(Speed = Fast)
Validating Expressions
In addition to the standard validation performed by the system, companies can implement a custom validation. For more information, see
Validating Expressions.