this blog post may be of use http://blog.athico.com/2007/06/chained-from-accumulate-collect.html


On Wed, Nov 26, 2008 at 9:08 PM, techy <techluver007@gmail.com> wrote:

though I referred other thread about this topic, I'm not successful to make a
dao call.
I beg your pardon to ask again.

1. I want to pass the fact object to the dao function which returns boolean.
I tried following rule and getting "
Unexpected token '$fact'" as eclipse compilation error. Please guide with
right syntax.
global RuleDAO dao;

rule "test DAO call"
 $fact : Fact(some condition)
 fact : Fact(dao.isValid($fact))
then
#do something
end

2. Will be there any performance issue for above kind of rule?

Thanks

--
View this message in context: http://www.nabble.com/DAO-call-in-LHS-tp20709043p20709043.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users