Example: Definition of a Set of Rules with Records
You want to define a set of rules that assigns R phrases R10
(Flammable
) and R18
(Formation of explosive/combustible air/vapor mixture possible during use
) 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
can include multiple data records, meaning that it can be assigned with multiple values. The R phrases should already be specified if at least one of the value assignments is between 21 and 55 °C.
Start the rule editor and create a new rule (see Using the Rule Editor).
Under Description
, enter a description of the rule, e.g. Derivation of two R phrases from multiple flashpoints.
In the Condition (IF)
field, enter the first part of the condition: 21 <.
From the overview tree, select the higher-level node Flash point
of value assignment type flash point and, using drag & drop, assign it to the Condition (IF)
field.
The following is now in the Condition field: 21 < FLAMMP.
From the overview tree, select the characteristic Value
of value assignment type Flash point
and, using drag and drop, drag it directly to the existing entry FLAMMP.
Complete the condition in the Condition
field as follows: 21 < FLAMMP.VALUE, FLAMMP.VALUE < 55.
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.
Internal fact key KENNZ_R_STZE appears in the Left Expr.
field and the system automatically inserts the operator := in the ToDo
field.
Note
At this point, it is not necessary to create a record as in step 4. because only one data record, in which only the characteristic R Phrases
is to be assigned multiple values, is to be created for value assignment type Indicator
.
Change the operator to += as the characteristic R Phrases
is to be assigned multiple values.
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.
The internal key of phrase "[#R10#]" appears in the Right Expr.
field.
In the next line of List of Todos (THEN)
, repeat steps 7 to 10, however in step 10 assign the phrase Formation of explosive/combustible air/vapor mixture possible during use
to the Right Expr.
field instead of the phrase Flammable
using drag and drop.
Save the set of rules.
During secondary data determination, the EH&S Expert uses this set of rules to create a data record of value assignment type Indicator
for substances with a flash point of between 21 and 55 °C in at least one value assignment. The phrases Flammable
and Formation of explosive/combustible air/vapor mixture possible during use
are assigned to characteristic R Phrases
here.
The rule file has the following structure:
Structure of example | ||
|---|---|---|
FACTS | ||
KENNZ_R_STZE(OUT) | ||
RECORD FLAMMP(IN) | ||
VALUE | ||
END | ||
;Rules | ||
RULES | ||
RULE NEWRULE1 | ||
DESCRIBE "Derivation of two R phrases from multiple flashpoints" | ||
IF 21 < FLAMMP.VALUE,FLAMMP.VALUE< 55 | ||
THEN | ||
KENNZ_R_STZE += "[#R10#]", KENNZ_R_STZE += "[#R18#]" | ||
END | ||
END | ||