Consciousness in Drooling

What is the result of several rules of equal importance? Is their execution order only the order in which they are indicated, or is this behavior undefined - that is, they are checked in random order? I can't seem to find documentation on how to do this internally.

+3
source share
3 answers

The short answer is that you should not rely on the order of rules shooting at the same significance - if they are “in conflict” (i.e. both have the right to shoot). Rules in which there is no significance are just zero, BTW.

Of course, this is deterministic - simply that the algorithm can be changed between versions (although this is not very likely).

" ", . Drools, , - "" - / "" - , , , . - , ( , ). - , , .

+12

Rete .

+2

Drools 5.1 , , . , drl, .

, :)

+1
source

Source: https://habr.com/ru/post/1763929/


All Articles