[rules-users] Fusion: Null pointer exception when using sliding windows

Davide Sottara dsotty at gmail.com
Wed Apr 24 11:36:31 EDT 2013


"," 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-using-sliding-windows-tp4023410p4023499.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list