[rules-users] how do I add not exists contraint in dslr

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jan 11 10:14:38 EST 2011


constraint insertion penetrates only 1 level of parentheses.
-w


2011/1/11 maverik j <maverikj348 at gmail.com>

> I tried with same example as in
> http://permalink.gmane.org/gmane.comp.java.drools.user/23689
> just changed the exists in this example to not(exists....)
>
> Regards,
> -maverik
>
> 2011/1/11 Wolfgang Laun <wolfgang.laun at gmail.com>
>
> Don't use not(exists( X() )).
>>    not( X() )
>> means "there is no X". The error may be due to constraints, but you'd have
>> to show us the entire DSLR condition and its DSL definition.
>> -W
>>
>>
>> 2011/1/11 maverik j <maverikj348 at gmail.com>
>>
>>>   Hi,
>>>
>>>   I have been trying to add not exists constraint in dslr but its failing
>>> to parse the dslr. Here is what I am trying to do in DSLR
>>>
>>> [when][][*Tt*]here is at least one {entity}= not(exists {entity}:
>>> {entity}())
>>>
>>> If I simply use the exists constraint here then it works well. But then
>>> after adding not to it, its not getting parsed correctly.
>>>
>>> error I am geeting is:
>>>
>>> [10,27]: [ERR 102] Line 10:27 mismatched input ',' expecting ')' in rule
>>> "Rule1" in pattern Person
>>>
>>> not sure whats going wrong here, if it is expected to work this way?
>>>
>>> thanks,
>>>
>>> -m
>>>
>>> _______________________________________________
>>> 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
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110111/7630f003/attachment.html 


More information about the rules-users mailing list