[rules-users] Guvnor and 'from' database

Mark Proctor mproctor at codehaus.org
Fri Mar 27 14:09:19 EDT 2009


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
>
>
>   





More information about the rules-users mailing list