Markus,

   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:

[condition][]Title contains not {value}=title not matches {value}
[condition][]Title contains {value}=title matches {value}

   []s
   Edson

2007/11/28, Markus Helbig <mhelbig81@googlemail.com >:
Hi all,

i'd like to have following DSL conditions

[condition][]Title contains {value}=title matches {value}
[condition][]Title contains not {value}=title not matches {value}


Currently (using Drools 4.0.3) it seems the parsers resolves to the
first condtion and is matching the word "not" to {value}, so i tried

[condition][]Title contains\s+{value}=title matches {value}
[condition][]Title contains\snot\s{value}=title not matches {value}


but this doesn't help, because second one again matches to the first
rule ... also it is missing one parameter ...

Any solutions?

Cheers

Markus
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com