"," behaves as "and", so that is not unexpected :)
You can use boolean operators to control your logic, e.g.:
not Foo( name == $name || data == $data, this before $primary )
We'd need to know the logic of the "desired final implementation"..
Davide
On 04/24/2013 08:25 AM, burmanator wrote:
I tried using not Foo(Name == $name, this before $primary) however
the
desired final implementation of code would be looking for multiple matching
fields more along the lines of:
rule test
when
$primary : Foo($name : Name, $data : Data) over window:length(24)
not Foo(Name == $name, Data == $data, this before $primary)
then
System.out.println("Found name: " + $name);
end
and because of this, if either Name or Data didn't match, the whole
statement would undesirably trigger as true.
--
View this message in context:
http://drools.46999.n3.nabble.com/Fusion-Null-pointer-exception-when-usin...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users