List Info

Thread: Re: Question on "or" rule syntax




Re: Question on "or" rule syntax
country flaguser name
United States
2008-05-14 08:58:40
This was cut'n'pasted from the documentation, so the
documentation needs 
fixing.  I'll open a Jira issue on it. 

Thanks.

Edson Tirelli wrote:
>
>    The single binding for multiple OR'ed patterns is a
special case 
> and it only supports infix OR:
>
> pensioner : (Person( sex == "f", age > 60
)  or Person( sex == "m", 
> age > 65 ) )
>
>
>     If the documentation is different, it requires
fixing.
>
>     []s
>     Edson
>
>
> 2008/5/13 Brett M. Bergquist <brettthebergquistfamily.com 
> <mailto:brettthebergquistfamily.com>>:
>
>     If I use this syntax for an "or" with
binding:
>
>     pensioner : (or Person( sex == "f", age
> 60 )              
>     Person( sex == "m", age > 65 ) )
>
>     I get a compile error.  Is this syntax supported?
>
>     I can successfully use this syntax:
>
>     (or pensioner : Person( sex == "f", age
> 60 )   pensioner :
>     Person( sex == "m", age > 65 ) )
>
>     which works okay but I was wondering if the
documentation or
>     implementation is incorrect.
>
>
>
>
>     _______________________________________________
>     rules-users mailing list
>     rules-userslists.jboss.org <mailto:rules-userslists.jboss.org>
>     
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> -- 
> Edson Tirelli
> JBoss Drools Core Development
> Office: +55 11 3529-6000
> Mobile: +55 11 9287-5646
> JBoss, a division of Red Hat  www.jboss.com <http://www.jboss.com>

>
------------------------------------------------------------
------------
>
> _______________________________________________
> rules-users mailing list
> rules-userslists.jboss.org
> 
https://lists.jboss.org/mailman/listinfo/rules-users
>   
_______________________________________________
rules-users mailing list
rules-userslists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )