Hear us Roar
Article:
 |
|
Give Your Business Logic a Framework with Drools
|
| Subject: |
|
rule contexts |
| Date: |
|
2005-08-08 09:20:47 |
| From: |
|
paul_browne
|
Response to: rule contexts
|
|
No , you didn't miss anything - the example(s) were kept very simple for clarity.
For the example you are talking about , you would probably split the Rules into two Sets (.drl files) - one for sell and one for buy.
If your question is more 'how do I model more complex rules , you would either (a) make your preconditions more complex - more conditions to be satisified before the rule fires or (b) Arrange it so that Rule 2 would only fire of a change made to working memory by Rule 1.
The www.drools.org site has a lot of additional information on this subject.
Paul Browne - www.firstpartners.net/rp
|
|
| |