[rules-users] "or" not working

Yu Wang yuwarm at gmail.com
Fri Aug 8 13:27:06 EDT 2008


Thanks for your reply. Yes, I am using a DSL. So what you mean is I
need to add 3 mappings in DSL like the following:
( mapped to (
) mapped to )
or mapped to or
right? I'll try that.
Thanks a lot!

On 8/8/08, Edson Tirelli <tirelli at post.com> wrote:
>
>    The error message indicates you are using DSL and the problem is not in
> the DRL, but in DSL.
>    DSL requires every single line to be "matches" (or expanded), so if you
> have a line with a single ( and nothing more, either you have a mapping for
> it, or you escape the line with ">".
>
>    Best way to fix your problem is to use the drools eclipse plugin for
> .dslr files, and using the DRL preview feature.
>
>    []s
>    Edson
>
> 2008/8/8 Yu Wang <yuwarm at gmail.com>
> >
> > Hi, I need help in making the "or" work. I have the following rule:
> >
> >
> > rule
> > when
> > (
> > or
> >         Condition_clause_1
> >         Condition_clause_2
> > )
> > then
> >        Consequence_clause_1
> > end
> >
> > -------------
> >
> > It gives me the following compilation error:
> >
> > org.drools.rule.InvalidRulePackage: [4] Unable to expand:
> (  [5]
> > Unable to expand: or    [8] Unable to expand: )
> >
> > Seems it doesn't recognize "(", "or", and ")". But I totally follow
> > the documentation on section 6.5.2.3 of version 4.0.7.
> >
> >
> > Any help is highly appreciated.
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> JBoss, a division of Red Hat @ www.jboss.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