[rules-users] Problems with OR

Giovanni Motta mottagio at gmail.com
Fri Jun 18 11:03:56 EDT 2010


exists(

TblVersichKlinik(

(versicherung != null, versicherung != " ") ||

(zusatzversicherung !=null, zusatzversicherung != " ")

)

)

Not tested, but should be like this...
Regards

2010/6/18 skasab2s <skasab2s at smail.inf.fh-brs.de>

>
> Hello,
>
> we are using Drools Expert. We have a rule which should fire if at least
> one
> of the object attributes are not empty. This is my pattern:
>
> ( TblVersichKlinik(versicherung != null, versicherung != " ")
> or
> (TblVersichKlinik(zusatzversicherung !=null, zusatzversicherung != " ")) )
>
> The problem is the following: when BOTH conditions are fulfilled, the rule
> fires twice, so I get redundant results in my final result, and this is not
> wanted.
>
> Is there a way to solve the problem? Any ideas ?
>
> Thanks a lot and many regards!
>
> skasab2s
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Problems-with-OR-tp905689p905689.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100618/9a6bc98f/attachment.html 


More information about the rules-users mailing list