<div>Hi,</div>  <div>I am new to JBoss rules. I have a .drl as given below:</div>  <div>&nbsp;</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>&nbsp;</div>  <div>Before firing the rules, I assert my object as </div>  <div>&nbsp;</div>  <div>posIn = new Position(name,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;symbolCode,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lonDouble,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;latDouble,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elevDouble,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reportDate,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this);<BR>&nbsp;&nbsp;&nbsp;&nbsp;workingMemory.assertObject( posIn );<BR>&nbsp;&nbsp;&nbsp;&nbsp;workingMemory.fireAllRules(); </div>  <div>&nbsp;</div>  <div>I get the following error.</div>  <div>&nbsp;</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>&nbsp;</div>  <div>What is wrong with my drl? I have a Utilities class that I have defined as global.</div>  <div>&nbsp;</div>  <div>Thanks</div>  <div>&nbsp;</div></FONT></FONT><p>&#32;
      <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.