<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
There are ways, but its always a compromise. To work directly with
pojos you need to retract the value before modification and then assert
it after modification. We can possibly instrument the drl to do an auto
retract and assert on using a setter, but it means you cannot modify a
fact external, without manually retracting and asserting it. This would
also deprecate modify() in the drl. Over time we'll try and provide
several ways to slice and dice this, as I don't think there is one
clear answer for everyone.<br>
<br>
Mark<br>
Michael Suzio wrote:
<blockquote
 cite="mid:bdb775e20702120902i47815076p85b77ce0882570ed@mail.gmail.com"
 type="cite">Hmm... shadow facts are going to mess up quite a bit of my
code, then.&nbsp; I have several classes which subclass a base class with
several final methods (to ensure that the contract of these classes
cannot accidently be broken -- so, we have a few final methods in an
abstract base class and several methods subclasses defined to customize
the behaviors).
  <br>
  <br>
Is there a way to get around this?&nbsp; I'm reluctant to muck up my POJO
logic, but I do understand the advantages of shadow facts.<br>
  <br>
&nbsp; --- Michael<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>