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
Show replies by date