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.l...@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 <maverikj...@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@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/rules-users >> >> > > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > >
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users