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

Wolfgang Laun wolfgang.laun at gmail.com
Thu Oct 21 05:02:29 EDT 2010


Unlikely... but do check the getSubject() method - does it return the
correct value?
-W

On 21 October 2010 10:52, Veit Guna <veit.guna at gmx.de> wrote:
> 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
> _______________________________________________
> 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