[rules-users] DAO call in LHS

Michal Bali michalbali at gmail.com
Wed Nov 26 16:26:06 EST 2008


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081126/3030a1c6/attachment.html 


More information about the rules-users mailing list