<br>&nbsp;&nbsp; Can&#39;t you keep the reference to your object while firing the rules?<br><br>MyObject x = ...<br>ksession.insert( x );<br>ksession.fireAllRules();<br>boolean result = x.getBooleanAttribute();<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br>
<br><div class="gmail_quote">2009/1/12 Costello, Robert <span dir="ltr">&lt;<a href="mailto:rcost10@searshc.com">rcost10@searshc.com</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;">
So, how do I access data after the rules fire?<br>
<br>
If one has a rule which modifies a field on an object (a boolean, for<br>
example), and you want to return the object after the rules are<br>
complete, how do you do it?<br>
<br>
I tried this using a StatefulKnowledgeSession, getting an object<br>
collection after the rules fire, but I don&#39;t see that this works.<br>
<br>
Also googled the heck out of this and looked in all the documentation.<br>
I must be missing something, because the docs generally are pretty good.<br>
<br>
<br>
Any hints?<br>
<br>
Thanks in advance,<br>
<br>
Robert Costello<br>
<br>
<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><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>