On the contrary of what you said I read the documentation. And there is this 
sentence :
"The next example shows how we can reason over the results of a hibernate 
query. The Restaurant pattern will reason over and bind with each result in 
turn:"
but after there is no example !!!!
I already tried to use the from keyword but I didn't succeed in writting a good 
syntax. So, that's why I ask the question.
The only thing I succeed in is to write a function which uses my dao to do SQL 
query.Then I call this function with "eval" in the LHS.
But how to use the "from" keyword ???
 
BR
 
Jean-Baptiste
 
________________________________

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Anstis, Michael 
(M.)
Envoyé : vendredi 8 août 2008 17:36
À : Rules Users List
Objet : RE: [rules-users] Use of a DAO in LHS


I suspect you may not have read the documentation.
 
Take a look at the "from" keyword.


________________________________

        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of BINET 
JEAN-BAPTISTE
        Sent: 08 August 2008 16:01
        To: rules-users@lists.jboss.org
        Subject: [rules-users] Use of a DAO in LHS
        
        

        Hello, 

        I have a DRL file in which I have a global variable representing a DAO. 
        So, I succeed in writting a rule which uses this DAO to run a SQL query 
        on the database from the RHS part. 
        But now, I would like to use my DAO in the LHS, I mean I want to fire 
my 
        rule only if a condition is ok on the result of my SQL query. 
        Is it possible to call a method of my DAO in the LHS part ? 
        I have not found an example. 

        Thanks. 

        Regards, 

        Jean-Baptiste 

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

Reply via email to