[rules-users] "distinct" operator in a query

Wolfgang Laun wolfgang.laun at gmail.com
Wed Nov 13 08:25:28 EST 2013


Probably what you mean is:
   exists YearData( id ==  $result.identifierCode, vehicles.size > 0 )

-W

On 13/11/2013, braveheart85 <andrea.pacifico.85 at gmail.com> wrote:
> How can i insert an EXISTS in above query?
> I inserted exist on Vehicle but what about Year?
> I got an exception if i write:
>
> exists $y: Year( )
>
> or
>
> $y: exists Year( )
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/distinct-operator-in-a-query-tp4026762p4026766.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