Exclude Rule
The exclude rule has this syntax.
1exclude(logic expression, relationship[type],"Explanation message");The type must be leaf type, a node without children.
In the exclude rule, if a user sets attribute values in Product Catalog Management (PCM) that violate the rule requirements, the constraint engine overrides the user input in order to validate the constraint. This behavior is different than other constraints, in which the constraint engine doesn't override user input, but displays an error if user input violates the constraint. See How User Input Order Affects Constraint Engine Behavior section in Logical Constraints.
In this example, the exclude rule automatically removes the Heater_120 heater from the type GeneratorSet if the Voltage3 is greater than or equal to 4160.
1type GeneratorSet {
2int Voltage3 = [120..13800];
3relation Heaters : Heater_120 [1..3];
4exclude(Voltage3 >= 4160, Heaters[Heater_120]);
5}
6type Heater_120 {}