<div>Hi,</div> <div>I am new to JBoss rules. I have a .drl as given below:</div> <div> </div><FONT size=2> <div>rule "Rule1"</div> <div>when</div> <div>$Position1 : Position()</div> <div>eval($Position1.getName() contains "POS-RPT_0_1")</div> <div>then</div> <div></div> <div>util.setColor($Position1, "red");</div> <div>end</div> <div> </div> <div>Before firing the rules, I assert my object as </div> <div> </div> <div>posIn = new Position(name,<BR> id,<BR> symbolCode,<BR> lonDouble,<BR> latDouble,<BR> elevDouble,<BR> reportDate,<BR> this);<BR> workingMemory.assertObject( posIn );<BR> workingMemory.fireAllRules(); </div> <div> </div> <div>I get the following error.</div> <div> </div><FONT
color=#ff0000 size=2> <div>org.drools.rule.InvalidRulePackage: Rule Compilation error The left-hand side of an assignment must be a variable Syntax error on token "contains", invalid AssignmentOperator</div></FONT><FONT size=2></FONT><FONT color=#ff0000 size=2> <div>at org.drools.rule.Package.checkValidity(Unknown Source)</div> <div>at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)</div> <div> </div> <div>What is wrong with my drl? I have a Utilities class that I have defined as global.</div> <div> </div> <div>Thanks</div> <div> </div></FONT></FONT><p> 
<hr size=1>Looking for a deal? <a href="http://us.rd.yahoo.com/evt=47094/*http://farechase.yahoo.com/;_ylc=X3oDMTFicDJoNDllBF9TAzk3NDA3NTg5BHBvcwMxMwRzZWMDZ3JvdXBzBHNsawNlbWFpbC1uY20-">Find great prices on flights and hotels</a> with Yahoo! FareChase.