Show TOC

 Example: Definition of a Set of Rules with Records

You want to define a set of rules that assigns the characteristic R phrases of the value assignment type Labeling with the R phrase R10 (Flammable ) and R18 ( In use, may form flammable/explosive vapor-air mixture ) for substances with a flash point between 21 and 55°C. The value assignment type Flash point can contain several data records, or in other words, it can be assigned multiple values . The R phrases are to be specified if at least one of the value assignments is between 21 and 55 °C.

Procedure

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

  2. Under Description enter a description for the rule, for example, Derivation of two R phrases from several flash points .

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

  4. From the overview tree choose the Flash point node for the value assignment type Flash point and assign it to the Condition ( IF ) field using drag & drop.

  5. The condition field now contains the following: 21 < FLASH_POINT.

  6. From the overview tree choose the characteristic Value from the value assignment type Flash point and drag it directly to the existing FLASH_POINT. entry using drag & drop.

  7. Add to the condition in the Condition field so that it reads 21 < FLASH_POINT.VAL, FLASH_POINT.VAL < 55 .

  8. From the overview tree choose the characteristic R phrases from the value assignment type Labeling and assign it to the Left Expr. field using drag & drop.

  9. The internal fact key LAB_R_PHRAS appears in the Left Expr. field and the system automatically adds the operator := to the ToDo field.

    At this point it is not necessary to create a record in the same way as under 4. because only one data record is to be created for the value assignment type Labeling in which only the R phrases characteristic is to be assigned multiple values.

  10. Change the operator to += because the R phrases characteristic is to be assigned multiple values.

  11. From the overview tree choose the phrase Flammable under the characteristic R phrases from the value assignment type Labeling and assign it to the Right Expr. field using drag & drop.

  12. The internal phrase key "[#R10#]" appears in the Right Expr . field.

  13. Repeat steps 7 to 10 in the next line of the List of Todos (THEN) but in step 10, instead of assigning the phrase Flammable , assign the phrase In use, may form flammable/explosive vapor-air mixture to the Right Expr. field using drag & drop.

  14. Save the set of rules.

Result

See Using the Rule Editor .

When using this set of rules to determine secondary data, the EH&S Expert creates one data record for the value assignment type Labeling for substances whose flash point is between 21 and 55°C in at least one value assignment. In the value assignment, the characteristic R phrases is assigned the phrases Flammable and In use, may form flammable/explosive vapor-air mixture .

The rule file has the following structure:

FACTS

 

LAB_R_PHRAS(OUT)

 

RECORD FLASH_POINT(IN)

   

VAL

 

END

;Rules

RULES

 

RULE NEWRULE1

   

DESCRIBE "Derivation of two R phrases from several flash points"

 

IF 21 < FLASH_POINT.VAL,FLASH_POINT.VAL < 55

 

THEN

 

LAB_R_PHRAS += "[#R10#]", LAB_R_PHRAS += "[#R18#]"

 

END

END