Indeed. It returns "my CRYPT subject". Added a system out to its get method.
The funny thing is, tried it with value=".*CRYPT.*" and field-name="subject" and it matches. I don't get it. Am 21.10.2010 11:02, schrieb Wolfgang Laun: > Unlikely... but do check the getSubject() method - does it return the > correct value? > -W > > On 21 October 2010 10:52, Veit Guna <[email protected]> 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 >> [email protected] >> https://lists.jboss.org/mailman/listinfo/rules-users >> > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
