Show TOC

 Example:Precondition for a Characteristic Value

You have a configurable material, BIKE. The material has characteristics MODEL and GEARS with the following values:

Characteristic

Values

Condition

MODEL

Racing

 
 

Standard

 
 

Mountain

 
 

Tandem

 

GEARS

10

 
 

12

 
 

17

 
 

21

MODEL = ‘Racing’

Only a racing bicycle can have 21 gears.

Procedure

1. Create a precondition.

2. This precondition has the following source code:

MODEL EQ ‘Racing’

3. Allocate the precondition to value 21 of characteristic GEARS, because this value is affected by the precondition.

Result

The system checks whether the value ‘Racing’ is set for characteristic MODEL.

  • If characteristic MODEL has another value, you do not see the value 21 for characteristic GEARS.

  • If characteristic MODEL has the value ‘Racing’, you see value 21 for GEARS.

  • If characteristic MODEL does not have a value, you see characteristic value 21 for characteristic GEARS, because the precondition is not violated.

Completing the Condition

You want value 21 hidden for characteristic GEARS if characteristic MODEL does not have a value. Add the following condition to the source code:

MODEL eq 'Racing' and Specified MODEL

There are now two conditions to fulfill for this precondition:

  1. Characteristic MODEL must have a value.

  2. Characteristic MODEL must have the value 'Racing'.