Hi Smitha,
Rewrite the rule as follows :-
Hi,I am new to JBoss rules. I have a .drl as given below:rule "Rule1"when$Position1 : Position()eval($Position1.getName() contains "POS-RPT_0_1")thenutil.setColor($Position1, "red");endBefore firing the rules, I assert my object asposIn = new Position(name,
id,
symbolCode,
lonDouble,
latDouble,
elevDouble,
reportDate,
this);
workingMemory.assertObject ( posIn );
workingMemory.fireAllRules();I get the following error.org.drools.rule.InvalidRulePackage: Rule Compilation error The left-hand side of an assignment must be a variable Syntax error on token "contains", invalid AssignmentOperatorat org.drools.rule.Package.checkValidity(Unknown Source)at org.drools.common.AbstractRuleBase.addPackage(Unknown Source)What is wrong with my drl? I have a Utilities class that I have defined as global.Thanks
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users