RE: [rules-users] decision tables and attributes as parameters in function calls

2008-04-07 Thread Mahesh Gadgil
Jonathan, The decision table mandates atleast one condition. I have faced this problem before. Assuming you always have some +ve value for cheese.price, do you want to try following? RuleSet Cheese rules Import com.xxx.entity.Cheese Variables Sequential TRUE RuleTable

RE: [rules-users] Re: Working with Hibernate objects

2008-02-22 Thread Mahesh Gadgil
Take out the entry of this table for hbm, instantiate this object manually, use the setters and run the rules. My guess is, it should run perfect. Send the hbm to the group, that would help. Configuration of this id in hbm is the source of problem.> Date: Fri, 22 Feb 2008 10:39:17 +0100> From:

RE: [rules-users] Working witj Hibernate objects

2008-02-21 Thread Mahesh Gadgil
I don't see your test class as a peristent class. Unless you add hibernate annotations it won't become as such. For the simple class you mentioned, if you are instantiating it and setting it's id, then you should see the correct result. Once you implement hibernate, retrieving this object from h

[rules-users] OR condition in decision tables

2008-02-19 Thread Mahesh Gadgil
Hi ALL, This is my first project on drools. I am using JBOSS rules 4.0.4 and wouldlike your help. I want to create a spreadsheet that will compile into drl file. I can notfigure out how I could create an OR condition in the spreadsheet. The drlcode I am looking to get finally will look like