This element is used to define and describe a rule that maps technically feasible configurations.
The rules are assigned to series or items by references from the corresponding elements. In total, all rules defined in this element must be referenced from either series or items.
Depending on the DECISION_TYPE attribute, different rules can be specified.
If the value in DECISION_TYPE is 0 or 1, the rule is a "preparation rule".
This allows for the definition of invalid and/or valid options in OPTION_COMBINATION. These are used to determine the valid options of a feature. These rules do not have an action part ("ACTIONS") and they define a quantity of feature combinations that are either true or false. This is a table with the features (FEATURES) as column headings; the cell contents of this table are values, lists, intervals, feature groups that are linked by quantity operators.
The conditions are supplemented with operators. The special data type operator was defined for this purpose. It may contain the following values:
eq (equal)
ne (not equal)
in (is contained in a quantity)
nin (is not contained in a quantity)
gt (greater)
lt (less)
ge (greater than or equal)
le (less than or equal)
The individual OPTION_COMBINATIONs must be considered as ELSE branches. This means that as soon as a condition line (OPTION_COMBINATION) receives a hit, the others will not be executed anymore.
If the value in DECISION_TYPE is 2, the rule is an action rule. It allows for the definition of actions depending on the conditions.
If all conditions within an „OPTION_COMBINATION“ are satisfied, all signed actions (ACTIONS) then can set values or make features (FEATURES) invisible depending on conditions. If an OPTION_COMBINATION is satisfied, the other conditions are not processed.
Actions (ACTIONS)
are instructions that are executed if a condition is met. The following actions can be executed:
The setting of options (SET_FEATURE_FIXED) with the following options:
- Direct, e.g. main fabric = "blue" (OPTION)
- the setting of option values from another feature (FEATURE), e.g. ledge fabric = main fabric
- the calculation of options (e.g. sitting height + 5 cm).
This function is only available for dimension versions and takes place via a formula string that may contain parameters and values.
This requires the feature (e.g. sitting height) to be assigned with a parameter (e.g. "sh").
The measure parameter (MEASURE_PARAMETER) can be supplemented with a unit (MEASURE_UNIT). The formula (FORMULA_STRING) therefore only contains the parameters (e.g. planning width = 2 * st + sb, which means that the planning width results from the sitting width + 2 times the side element width)
The setting of standard versions (SET_FEATURE_DEFAULT, SET_FEATURE_DEFAULT_NULL):
These can be filled if no value has been entered yet. The same options as above apply.
The visibility of features (SET_FEATURE_VISIBLE, SET_FEATURE_INVISIBLE) and/or the deactivation of rules (DISABLE_DECISION, ENABLE_DECISION):
Example: for wooden feet, a potentially existing feature for a shade can be displayed and made invisible if a metal foot is selected.
Action rules are usually used in the configurator if an option value (an option) changes. If, for example, the foot option is changed from stainless steel to wood, a feature for the shade can be displayed.
If the value in DECISION_TYPE is 3, the rule is an action rule for piece lists. Depending on the conditions, the quantity can be defined in the piece list here.