Dirk, did you also get
java.lang.ClassFormatError: Repetitive field name/signature in class file
Because then it's probably this open jira:
http://jira.jboss.com/jira/browse/JBRULES-575
Edson Tirelli wrote, On 2006-12-07 1:18 PM:
Dirk,
Would you please submit your error as a JIRA bug?
Thank you,
Edson
Dirk Bergstrom wrote:
I just finished a big refactoring/rewriting, fired up my application
with the
latest code from Trunk, and got a nasty error about shadow facts...
Edson Tirelli was heard to exclaim, On 12/03/06 15:05:
But, if you have a pattern in your application that, lets say,
always retract objects from the working memory, changes its
attributes and assert the object again, :) then you don't need
ShadowFacts... but I think this use case is not a real use case... is
it? :)
Yes, it is.
I am doing almost exactly that. In my case, I have a hundred or so
objects of a
specific type that I cycle through the WM with
assert/fireAllRules/retract (and
another few hundred objects of two different types that stay in the WM
all the
time). I do this assert/retract dance because there is no value in
having them
in the memory once I've checked their compliance with the rules -- I
need to
update them with current data before running the rules again.
So creating a ShadowFact for each one after I retract it does nothing
for me.
Well, except for crashing my system.
Edson Tirelli wrote:
Regarding the feature, right now it is mandatory, but I was
talking to Mark to make it optional. Unfortunally Shadow Facts
are one of those necessary evils. If you ever change a fact
attribute in your network, that fact needs a shadow fact. So,
unless you use the engine simply as a discrimination network, you
will need them, but the idea is to make them optional and better
yet on an object type basis, in a way that users can turn it ON
only for those types where it is really needed.
This would be very useful for me. I have three types, two of which
stay in the
WM, and get changed (I have PropertyChangeListeners on them), and one
which is
asserted and retracted. I'd like to turn off shadow facts for the
third type.
--
With kind regards,
Geoffrey De Smet
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email