<br><font size=2 face="sans-serif">Hi All</font>
<br>
<br><font size=2 face="sans-serif">I am new to drools and have started
with Drools Guvnor . I am trying to create DSL based on the sample examples
in guvnor.</font>
<br>
<br><font size=2 face="sans-serif">I have Customer as "declarative
fact model" and 2 fields within it totalItenmsPrice (integer) and
discount(boolean)</font>
<br>
<br><font size=2 face="sans-serif">I have created a DSL which contains
the below code.</font>
<br><font size=2 face="sans-serif">I need to check if the value of totalItenmsPrice
is greater than 100 then give discount to customer</font>
<br>
<br><font size=2 face="sans-serif">[when]total cost of purchased items
is greater than {num}=cust:Customer( totalItenmsPrice > {num})</font>
<br><font size=2 face="sans-serif">[then]Give discount to customer =cust.setDiscount(true)</font>
<br>
<br>
<br><font size=2 face="sans-serif">and when I specify the value of num
as 100 in rule editor it doenst allow.</font>
<br>
<br><font size=2 face="sans-serif">I am not familiar with DSL syntax .</font>
<br>
<br><font size=2 face="sans-serif">Can someone plz look into this.</font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Nilima <br>
<br>
<br>
</font><pre>=====-----=====-----=====
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
</pre>