[rules-users] Fucntion call in rule

prateek.katiyar at wipro.com prateek.katiyar at wipro.com
Thu Oct 4 09:16:10 EDT 2007


Hi 
I wrote a function in my rule file "boolean test(String name)" and when i use this function in the <lhs></lhs>
part of one of my rule it's giving me the following error:
 
org.drools.rule.InvalidRulePackage: Rule Compilation error The method test(String) is undefined for the type Rule_validateFullName_0

at org.drools.rule.Package.checkValidity(Unknown Source)

at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)

at com.wipro.loan.validation.bean.Final.readRule(Final.java:75)

at com.wipro.loan.validation.bean.Final.main(Final.java:28)

now i want to know that how can i pass the return value of a method of a bean class as a argument of  "boolean test(String name)"  method.

I am sending the source files in the attachment.

Please help me.
 
With Regards
Prateek



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d5c72eda/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src.zip
Type: application/x-zip-compressed
Size: 3282 bytes
Desc: src.zip
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20071004/d5c72eda/attachment.bin 


More information about the rules-users mailing list