Sorry, I missed the explanation......
The function definition and call should be in dslr.
Can i define my dslr in the below format?
sample.dslr
*********
rule "name"
when
There is a Customer
eval(isDiscountAllowed($Customer)) // function call
then
Log : "Message"
end
// function definition
function boolean isDiscountAllowed(){
return true;
}
Can i have the drl kindof coding in DSLR?
Thanks,
Bala
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Wrting-drl-code-in-DS...
Sent from the Drools - User mailing list archive at
Nabble.com.