
Inferring a Characteristic Value with Actions (Example)
Use
Configurable material BIKE has the following characteristics:
Characteristic |
Values |
Actions |
MODEL |
Racing |
SADDLE = ‘Leather’ |
|
Standard |
||
|
Mountain |
||
|
Tandem |
||
SADDLE |
Plastic |
|
|
Leather |
If the value ‘Racing’ is set for MODEL, the value ‘Leather’ is automatically set for SADDLE, because racing bikes are always supplied with a leather saddle.
Procedure
$SELF.SADDLE = ‘Leather’ if MODEL = ‘Racing’
Result
If the value ‘Racing’ is set for MODEL when you configure the BIKE, the value ‘Leather’ is automatically set for SADDLE.
See also:
Allocating Object Dependencies