[rules-users] (no subject)

Nilima R nilima.r at tcs.com
Wed Jan 13 05:03:46 EST 2010


Hi All

I am new to drools and have started with Drools Guvnor . I am trying to 
create DSL based on the sample examples in guvnor.

I have Customer as "declarative fact model" and 2 fields within it 
totalItenmsPrice (integer) and discount(boolean)

I have created a DSL which contains the below code.
I need to check if the value of totalItenmsPrice  is greater than 100 then 
give discount to customer

[when]total cost of purchased items is greater than {num}=cust:Customer( 
totalItenmsPrice > {num})
[then]Give discount to customer =cust.setDiscount(true)


and when I specify the value of num as 100 in rule editor it doenst allow.

I am not familiar with DSL syntax .

Can someone plz look into this.



Nilima 


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100113/463f588d/attachment.html 


More information about the rules-users mailing list