update does not work either.
Actually the error seems to come from the fact that the MyObject I try to
modify has been somehow modified by an earlier rule. It appears that in some
cases, an instance of InnerObject1 that is part of the MyObject is retracted
(thanks to the retract statement) and the link between the two instances is
destructed.
When I do not retract that instance of InnerObject1, then the error goes
away.
Yet I have the exact same behavior with an instance InnerObject2 (still
linked to the same instance of MyObject) and when I stop retracting the
instance of InnerObject1 the error goes away although I do keep retracting
the instance of InnerObject2 ...
I am lost here ... why does the modify statement throws such an error
(whether I retract objects or not!)?
--
View this message in context:
http://drools.46999.n3.nabble.com/ConsequenceException-when-using-modify-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.