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(a)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(a)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