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

-W

On 13/11/2013, braveheart85 <[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to