How do I post this in the drools forum so everyone can see?
---------- Forwarded message ----------
From: sam <parishi(a)gmail.com>
Date: Tue, Aug 16, 2011 at 10:36 AM
Subject: [rules-users] Unable to create restriction error
To: rules-users(a)lists.jboss.org
I am getting the following error when running a drl script:
Unable to create restriction '[QualifiedIndentifierRestr:
Anyone can throw more light on what the issue is?
Here is my complete test set up:
public class InnerBean {
private int testVal = 100;
public int getTestVal() {
return testVal;
}
public void setTestVal(int testVal) {
this.testVal = testVal;
}
}
public class ValidationBean {
private int actualTestVal = 200;
private InnerBean innerBean= new InnerBean ();
public int getActualTestVal() {
return actualTestVal;
}
public void setActualTestVal(int actualTestVal) {
this.actualTestVal = actualTestVal;
}
public InnerBean getInnerBeanl() {
return innerBean;
}
public void setInnerBeanl(InnerBean argInnerBean) {
innerBean = argInnerBean;
}
}
The drl script is
package droolsbook.dsl;
import com.wellsfargo.mortgage.camr.model.hibernate.*;
import com.wellsfargo.mortgage.camr.model.service.drools.*;
rule "Threshold rule 1"
when
$bean: ValidationBean ( actualTestVal > innerBean.testVal )
then
--failure
end
The ValidationBean ($bean) is inserted into drools working memory.
Thanks in advance
Sam
--
View this message in context:
http://drools.46999.n3.nabble.com/Unable-to-create-restriction-error-tp32...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users