Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update first_rule_language_element.md #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions drools/first_rule_language_element.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down