Hello - I have a question on how to a contains operation with primitive
values. What I have is a message that has a field called intTest that is a
List<Integer>. If i do an intTest contains 4 check, then check compiles but
it never matches. However if I do an eval it does work. Does anyone know
how to use a primitive in a contains.
Here is a sample of the rule:
package com.sample
import com.sample.DroolsTest.Message;
rule "Test" salience 9999
#when Message( eval(intTest.contains(Integer.valueOf(4))))
when Message( intTest contains 4)
then
System.out.println("Found 4");
end
--
View this message in context:
http://n3.nabble.com/Question-on-contains-operator-with-integer-tp440559p...
Sent from the Drools - User mailing list archive at
Nabble.com.