[rules-users] Guvnor does not like my rule?

JohnPerrin John.Perrin at acxiom.com
Fri Aug 26 16:18:39 EDT 2011


Thanks folks.  I did end up finding something that works.  I guess
Guvnor5.2.0.Final still has some quirks.  Even this has to be written just
so for the package to build.  Everything has to be cast, using typing didn't
seem to work.

	when
		$validList : List()
			from accumulate(
				InRecord($value : value != ""),
					ListValid($value))
	then
		java.util.Iterator iter = (java.util.Iterator)$validList.iterator();
		while (iter.hasNext()) {
			String curr = (String)iter.next();
			ValidValue aValidVal = new ValidValue(curr);
			insert(aValidVal);
		}




--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Guvnor-does-not-like-my-rule-tp3287587p3287898.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list