Drools: insertLogical and retract

This is a continuation of the previous question . I have a decision tree in the following form:Decision tree diagram

and I want to convert it to rules in Drools Expert. Use has insertLogicalbeen suggested . The Drools documentation says this about insertLogical:

insertLogical(new Something()); is similar to the insertion, but the object will be automatically cleaned when there are no more facts confirming the truth of the current shooting rule.

, , ( , ). retract(object), . node (retract) , ( ), , insertLogical ?

+3
1

, , , , Drools, JVM-. , - .

+4

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


All Articles