[rules-users] or condition - subrules
Maxim Veksler
maxim.veksler at gmail.com
Sun Jan 18 08:17:46 EST 2009
תמיד נחמד לראות עוד ישראלים באינטרנט.
On Fri, Jan 16, 2009 at 6:57 PM, <kfs2 at chryslerfinancial.com> wrote:
>
> I think I found the answer to my question:
>
> rule "Test"
> *when*
> CoApplicant( $relationship : relationship )
> Contract ( $state : state )
> *eval* ($relationship == "S" || $state == "CO" || $state
> == "IL")
> ...
>
> Thanks
>
>
> *kfs2 at chrysler.com*
> Sent by: rules-users-bounces at lists.jboss.org
>
> 01/16/2009 11:40 AM
> Please respond to
> Rules Users List <rules-users at lists.jboss.org>
>
> To
> rules-users at lists.jboss.org cc
> Subject
> [rules-users] or condition - subrules
>
>
>
>
>
> I understand that as this rule is written below it will be compiled into 2
> subrules which both fire. I searched the archives and found a post where
> Mark Proctor suggested "Bind each pattern, and do the || field constraints
> in an eval.". I'm new to Drools, can someone elaborate on how I would do
> that with the rule below?
>
> rule "Test"
> when
> (CoApplicant( relationship == "S" ) or (Contract ( state in
> ("CO", "IL"))))
> then
> ...
>
> Thanks
>
> Kent _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> <https://lists.jboss.org/mailman/listinfo/rules-users>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Cheers,
Maxim Veksler
"Free as in Freedom" - Do u GNU ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090118/efc96344/attachment.html
More information about the rules-users
mailing list