this blog post may be of use <a href="http://blog.athico.com/2007/06/chained-from-accumulate-collect.html">http://blog.athico.com/2007/06/chained-from-accumulate-collect.html</a><br><br><br><div class="gmail_quote">On Wed, Nov 26, 2008 at 9:08 PM, techy <span dir="ltr">&lt;<a href="mailto:techluver007@gmail.com">techluver007@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
though I referred other thread about this topic, I&#39;m not successful to make a<br>
dao call.<br>
I beg your pardon to ask again.<br>
<br>
1. I want to pass the fact object to the dao function which returns boolean.<br>
I tried following rule and getting &quot;<br>
Unexpected token &#39;$fact&#39;&quot; as eclipse compilation error. Please guide with<br>
right syntax.<br>
global RuleDAO dao;<br>
<br>
rule &quot;test DAO call&quot;<br>
&nbsp;$fact : Fact(some condition)<br>
 &nbsp;fact : Fact(dao.isValid($fact))<br>
then<br>
#do something<br>
end<br>
<br>
2. Will be there any performance issue for above kind of rule?<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/DAO-call-in-LHS-tp20709043p20709043.html" target="_blank">http://www.nabble.com/DAO-call-in-LHS-tp20709043p20709043.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<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>
</font></blockquote></div><br>