diff --git a/drools/first_rule_language_element.md b/drools/first_rule_language_element.md index 47d842d..2e54133 100644 --- a/drools/first_rule_language_element.md +++ b/drools/first_rule_language_element.md @@ -84,9 +84,9 @@ Drools can be viewed in a synthetic picture like this : ![](../.gitbook/assets/lesson1_fig17.png) The production memory contains all the rule definitions \(in our case the drl for the moment\). -The working memory which created with the session and we can add facts to it with the method insert. +The working memory was created with the session and we can add facts to it with the method insert. The agenda contains all the rules that can be fired. -The Pattern Matcher is the algorithm that is used to match the rules on the facts given. In Drools latest version, there are many different algorithms that is used \(The main one is the rete algorithm\). +The Pattern Matcher is the algorithm that is used to match the rules on the facts given. In Drools latest version, there are many different algorithms that are used \(The main one is the rete algorithm\). On each of those parts, it is possible to add a callback when we create a Session. @@ -111,7 +111,7 @@ The first line is generated by the first test. To be able to see the difference and now the console should look like this :![](../.gitbook/assets/TestLesson1AddJunitMethodDisplay.png) The first test is passed and we see the output generated when the rule is fired. -The second test first inserts an object, then updates it the retract it. +The second test first inserts an object, then updates it then retracts it. To update an object, you first have to memorize the fact handle : ```text