Hi All,

I have a question regarding using a global list. I have the following rule:

global java.util.List list List;

Rule "rule1"
 when
   A
 then
   list.add("rule1");

When I'm trying to check the list content in LHS of another rule I get a
compilation error: "mismatch input ...":

Rule "rule2"
 when
   list.contains("rule1") /*or: list contains "rule1"*/
 then
   ...
How do I check the list content from LHS?

Thanks you in advance.
Any help would be appreciated :-)
-- 
View this message in context: 
http://n3.nabble.com/Using-a-global-list-in-a-rule-tp115746p115746.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to