
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
The condition field now contains the following:
21 < FLASH_POINT.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.
The internal phrase key "[#R10#]" appears in the Right Expr. field.
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 | ||