[rules-users] Drools basic questions.

Anstis, Michael (M.) manstis1 at ford.com
Fri May 18 03:55:40 EDT 2007


See original response attached.

Did you not receive it? 

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Mithun
Sent: 17 May 2007 06:04
To: rules-users at lists.jboss.org
Subject: [rules-users] Drools basic questions.


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.

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An embedded message was scrubbed...
From: "Anstis, Michael \(M.\)" <manstis1 at ford.com>
Subject: RE: [rules-users] Drools basic questions.
Date: Thu, 17 May 2007 09:13:04 +0100
Size: 3211
Url: http://lists.jboss.org/pipermail/rules-users/attachments/20070518/73b5fc0d/attachment.mht 


More information about the rules-users mailing list