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-DSLR-tp2233167p2233854.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to