|
Full integration is extremely difficult because we cannot monitor
nested objects. The Rete network maintains an internal state of the
relationship between facts, if those nested objects change the Rete
network loses its integrity. To understand why think about HashMaps, if
you put an object and they change the value of the key - thus changing
the equals and hashcode - you can no longer retrieve that object by the
key. We have this same issue. As a compromise we allow people to do
what they want inside of predicates and evals as we retain no state
on those. One option we are considering is using JFDI to allow field type constraints with nested objects and simply converting that to a predicate during the parser stage. Its sugar coating, but should help improve declarative coding. Michael Neale wrote: Hi Alex. We are currently working on something similar (but a little more tuned for rules) but the end result will be pretty much the same result (but hopefully more performant, and with rule specific features like handing the shadow facts, deftemplates transparently etc). |
- [drools-dev] Accessing fact fields using OGNL Alexander Varakin
- Re: [drools-dev] Accessing fact fields using OGNL Michael Neale
- Re: [drools-dev] Accessing fact fields using OG... Mark Proctor
