Drools is surprisingly one of the most intuitive tools I have used. I did
Java about 6 yrs back and most of the things I work on with Drools work the
first time or as soon as I get the basics right. So the code below works in
guvnor. I had to change the source code of the Drools Execution Server to
instantiate and pass a hibernateSession as a global to the drools stateless
session for rule execution.
I then defined hibernateSession as a global in guvnor and used it in a rule.
cust:Customer() from hibernateSession.createQuery("from Customer where
Thx for your help Greg. And btw, I query for only one customer and I cannot
insert that one customer in working memory prior to rule because Drools
execution server is generic and does not know what client might request. But
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com