[rules-users] xdrl, matches and nested method calls
Veit Guna
veit.guna at gmx.de
Thu Oct 21 05:10:46 EDT 2010
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 <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
>>
>
> _______________________________________________
> 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