Details
Description
After calling workingMemory.assertObject(), I add a rule which should match against the object that was asserted, but it does not. Even though (using Rete) mapping previously asserted facts onto new rules is a relatively costly operation, I would think it's necessary.
Issue Links
- is related to
-
DROOLS-393
Make RuleBaseImpl reference each WorkingMemory it creates
-
Drools does not currently support the adding of additional Rules to a RuleBase once you've obtained the RuleBase from a call to RuleBaseBuilder. Like you say, however, it should be possible, and Robert B. Doorenbos' paper entitled "Production Matching for Large Learning Systems" has a section devoted to the topic: Section 2.6, "Adding and Removing Productions"
http://drools.org/download/attachments/8082/CMU-CS-95-113.pdf?version=1