Example: Definition of a Single Set of Rules

 

You want to define a set of rules that assigns R phrase R10 (Flammable) to characteristic R Phrases of value assignment type Indicator for substances with a flash point of between 21 and 55 °C. Value assignment type flash point should only contain one data record; in other words, can only be assigned a single value.

Procedure

  1. Start the rule editor and create a new rule (see Using the Rule Editor).

  2. Under Description, enter a description of the rule, e.g. Derivation of R phrase from flashpoint.

  3. In the Condition field, enter the first part of the condition: 21 <.

  4. From the overview tree, select the characteristic Value of value assignment type Flash point and, using drag and drop, assign it to the Condition (IF) field.

  5. In the Condition (IF) field, you will now see 21 < FLAMMP_WERT.

  6. Complete the condition in the Condition field as follows: 21 < FLAMMP_WERT, FLAMMP_WERT < 55.

  7. From the overview tree, select the characteristic R Phrases of value assignment type Indicator and, using drag and drop, assign it to the Left Expr. field.

  8. Internal fact key KENNZ_R_STZE appears in the Left Expr. field and the system automatically inserts the operator := in the ToDo field.

  9. From the overview tree under characteristic R Phrases of value assignment type Indicator, select the phrase Flammable and, using drag and drop, assign it to the Right Expr. field.

  10. Internal phrase key "[#R10#]" appears in the Right Expr. field.

  11. Save the set of rules.

Result

See Using the Rule Editor.

The rule file (<Name>.rul) has the following structure:

Structure of example

FACTS

KENNZ_R_STZE(OUT),

FLAMMP_WERT(IN)

;Rules

RULES

RULE NEWRULE1

DESCRIBE "Derivation of R phrase from flash point"

IF 21 < FLAMMP_WERT, FLAMMP_WERT < 55

THEN

KENNZ_R_STZE := "[#R10#]"

END

END