How do I post this in the drools forum so everyone can see?<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">sam</b> <span dir="ltr">&lt;<a href="mailto:parishi@gmail.com">parishi@gmail.com</a>&gt;</span><br>
Date: Tue, Aug 16, 2011 at 10:36 AM<br>Subject: [rules-users] Unable to create restriction error<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><br><br>I am getting the following error when running a drl script:<br>

Unable to create restriction &#39;[QualifiedIndentifierRestr:<br>
<br>
Anyone can throw more light on what the issue is?<br>
<br>
Here is my complete test set up:<br>
<br>
public class InnerBean {<br>
        private int testVal = 100;<br>
        public int getTestVal() {<br>
                return testVal;<br>
        }<br>
        public void setTestVal(int testVal) {<br>
                this.testVal = testVal;<br>
        }<br>
}<br>
<br>
public class ValidationBean {<br>
        private int actualTestVal = 200;<br>
        private InnerBean innerBean= new InnerBean ();<br>
        public int getActualTestVal() {<br>
                return actualTestVal;<br>
        }<br>
        public void setActualTestVal(int actualTestVal) {<br>
                this.actualTestVal = actualTestVal;<br>
        }<br>
<br>
         public InnerBean getInnerBeanl() {<br>
               return innerBean;<br>
         }<br>
         public void setInnerBeanl(InnerBean argInnerBean) {<br>
               innerBean = argInnerBean;<br>
         }<br>
}<br>
<br>
The drl script is<br>
<br>
package droolsbook.dsl;<br>
import com.wellsfargo.mortgage.camr.model.hibernate.*;<br>
import com.wellsfargo.mortgage.camr.model.service.drools.*;<br>
rule &quot;Threshold rule 1&quot;<br>
    when<br>
       $bean: ValidationBean ( actualTestVal   &gt; innerBean.testVal )<br>
    then<br>
       --failure<br>
end<br>
<br>
The ValidationBean ($bean) is inserted into drools working memory.<br>
<br>
Thanks in advance<br>
Sam<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Unable-to-create-restriction-error-tp3259007p3259007.html" target="_blank">http://drools.46999.n3.nabble.com/Unable-to-create-restriction-error-tp3259007p3259007.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></div><br>