One thing you can do is to define a global to store that object. Then you could retrieve it from the outside.<div><br></div><div>Best,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>

- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Fri, Jan 28, 2011 at 2:02 PM, Benson Fung <span dir="ltr">&lt;<a href="mailto:benson.redhat@gmail.com">benson.redhat@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I developed a rule as below:<br>
<br>
        rule &quot;Rule1&quot;<br>
            dialect &quot;mvel&quot;<br>
            when<br>
                Fields( field1 &gt; &quot;100&quot; )<br>
            then<br>
                FieldResults fact0 = new FieldResults();<br>
                fact0.setField1( &quot;This is Correct!&quot; );<br>
                insert(fact0 );<br>
        end<br>
<br>
After calling fireAllRules(...), the above rule will be fired and<br>
created a fact object in the working memory.<br>
My problem is how to obtain the FieldResults object in the java<br>
program.  Please advise.<br>
<br>
<br>
Thanks<br>
Benson<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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></div>