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

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jan 11 06:57:46 EST 2011


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110111/f86f4848/attachment.html 


More information about the rules-users mailing list