[rules-users] Guvnor and 'from' database

Mark Proctor mproctor at codehaus.org
Fri Mar 27 14:45:46 EDT 2009


Earnest Dyke wrote:
> Could you do the same thing with an entity manager?
of course, drools doesn't know what these things are - it's just a black 
box expression and it processes the results.

Mark
>
> Earnie!
>
> ------------------------------------------------------------------------
> *From:* Mark Proctor <mproctor at codehaus.org>
> *To:* Rules Users List <rules-users at lists.jboss.org>
> *Sent:* Friday, March 27, 2009 2:09:19 PM
> *Subject:* Re: [rules-users] Guvnor and 'from' database
>
> Anu at work wrote:
> > I am trying to use drools to evaluate the following rule:
> >
> > Given a telephone number, if the telephone number already exists in 
> database
> > and has a balance > 0, set isAllowed = false.
> > Looking at forum posts I understand that this can be achieved using
> > hibernate and 'from' keyword. However, this is my current scenario - I
> > create a package snapshot for my rules in Guvnor and use the URL in 
> Drools
> > execution server. Execution server runs only stateless sessions.
> > Where and how do I use hibernate named queries? 
> set the hibernate session as a global and then the 'from' can access it.
> > Thx,
> > Anu
> >
> >
> > 
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20090327/2f879f58/attachment.html 


More information about the rules-users mailing list