<br> Markus,<br><br> The engine processes the mappings in the order they are written, so you must always write more restrictive patterns first and less restrictive patterns second:<br><br>[condition][]Title contains not {value}=title not matches {value}
<br>
[condition][]Title contains {value}=title matches {value}<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/11/28, Markus Helbig <<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.com</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br><br>i'd like to have following DSL conditions<br><br>[condition][]Title contains {value}=title matches {value}
<br>[condition][]Title contains not {value}=title not matches {value}<br><br><br>Currently (using Drools 4.0.3) it seems the parsers resolves to the<br>first condtion and is matching the word "not" to {value}, so i tried
<br><br>[condition][]Title contains\s+{value}=title matches {value}<br>[condition][]Title contains\snot\s{value}=title not matches {value}<br><br><br>but this doesn't help, because second one again matches to the first
<br>rule ... also it is missing one parameter ...<br><br>Any solutions?<br><br>Cheers<br><br>Markus<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli
<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>