constraint insertion penetrates only 1 level of parentheses. -w
2011/1/11 maverik j <[email protected]> > 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 <[email protected]> > > 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 <[email protected]> >> >>> 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 >>> [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 > >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
