[rules-users] Difference between adding $ at the beginning of a variable

suddeb sudipta.deb at gmail.com
Tue Jan 15 15:04:35 EST 2013


Hi,
As I am very new to Drools, could you please tell me what is the difference
between adding a $ at the beginning of a variable and without $. 
For example:
rule "validate holiday"
when
   *$h1 : Holiday( `when` == "july" )*
then
   ......
end

and 

rule "validate holiday"
when
   *h1 : Holiday( `when` == "july" )*
then
   ......
end

Regards,
Sudipta Deb



--
View this message in context: http://drools.46999.n3.nabble.com/Difference-between-adding-at-the-beginning-of-a-variable-tp4021549.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list