Hi,<br>
<br>
I want to be able to use drools / guvnor brms to store weighted rules<br>
(scoring), however I can&#39;t seem to find a way to do this.<br>
<br>
I attempted the following,<br>
<br>
rule &quot;Myscoreincreaserule&quot;<br>
        dialect &quot;mvel&quot;<br>
        when<br>
                Applicant( name == &quot;chris&quot; )<br>
        then<br>
                Applicant fact0 = new Applicant();<br>
                fact0.setScore( score + 2 );<br>
                insert(fact0 );<br>
end<br>
<br>
drools didn&#39;t seem to like the way I did this.  Perhaps this isn&#39;t<br>
permitted, in effect I am trying to do - score = score + 2.<br>
<br>
Upon validation I get the following error.<br>
<br>
        [Myscoreincreaserule] Unable to build expression for &#39;consequence&#39;: Failed<br>
to compile: 1 compilation error(s): - (1,3) unqualified type in strict mode<br>
for: age &#39; Applicant fact0 = new Applicant(); fact0.setScore( score + 2 );<br>
insert(fact0 ); &#39;<br>
<br>
Any ideas on how I should be approaching this?<br>
<br>
Thanks,<br>