[rules-users] Drools basic questions.

Mithun mithun.gooty at spi.com
Thu May 17 01:03:44 EDT 2007


I am new to drools, so i have some basic doubts. 

1. what does the dollar sign represent in the following rule? what is the
difference when u prefix and dont prefix a variable with the dollar sign?
    - $stilton : Cheese( type == "stilton" )
      Cheesery( cheeses contains $stilton )

2. what is the difference between the following rule statements ?
    - cheapStilton : Cheese( type == "stilton", price < 10 ) and
    - cheapStilton : Cheese( type == "stilton", price < newPrice)

   how does the rule base get access to the variable newPrice, in the above
rule statement? Please help.

Thank you.
-- 
View this message in context: http://www.nabble.com/Drools-basic-questions.-tf3770003.html#a10658753
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list