<br><br>&nbsp;&nbsp; Assuming your &quot;computesomething&quot; method has a signature like:<br><br>public boolean computesomething() { .. }<br><br>&nbsp;&nbsp; The shadow proxy will delegate the call to your instance method. So, does not matter if the shadow proxy innerObj is null (since being a lazy proxy it may not have been loaded yet) because the shadow proxy will actually execute your instance computesomething() method.<br>
<br>&nbsp;&nbsp; Stack trace?<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div class="gmail_quote">2008/12/9 Trägenap <span dir="ltr">&lt;<a href="mailto:traegenap@ttc-informatik.de">traegenap@ttc-informatik.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I got some problems with shadowproxy.<br>
<br>
I have a couple of instances of class &quot;FirstObj&quot;. The objects contains some other objects like &quot;innerObj&quot; and have a method &quot;computesomething&quot;, which returns boolean and use the &quot;innerObj&quot; to compute the result.<br>

<br>
I try to access this object with the following rule:<br>
<br>
rule &quot;doIt&quot;<br>
when<br>
 &nbsp; &nbsp;$firstobj : FirstObj(computesomething == true)<br>
then<br>
 &nbsp; &nbsp;// take a break...<br>
 &nbsp; &nbsp;System.out.println(&quot;be happy&quot;);<br>
<br>
I debug the programm and figure out that the innerObj is not null. Instead of my original object &quot;firstobj&quot;, there I found a FirstObjShadowProxy which offers a field called &quot;innerObj&quot; which is null.<br>

<br>
Isnt it possible to get access to &quot;computed&quot; fields? What is wrong here?<br>
<br>
Thanks<br>
Thorsten<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br> &nbsp;Edson Tirelli<br> &nbsp;JBoss Drools Core Development<br> &nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>