[rules-users] xdrl, matches and nested method calls

Veit Guna veit.guna at gmx.de
Thu Oct 21 04:52:49 EDT 2010


Hi.

We're using Drools 5.1.0 with .xdrl files. Now we encountered a strange
problem with the 'matches' behavior.

We have the following pattern that seems to have the problem:

<dro:pattern object-type="EMail">
  <dro:field-constraint field-name="subject">
    <dro:literal-restriction evaluator="matches" value=".*\QCRYPT\E.*"/>
  </dro:field-constraint>
</dro:pattern>

Subject is a String with the content "my CRYPT subject".

The rule isn't fired as expected. If we ONLY change

field-name="subject"

to

field-name="subject.trim"

the rule fires.

Any pointers what that is?

Thanks
Veit



More information about the rules-users mailing list