MVEL has nothing to do with the possibility of using abcXyz in a constraint instead of the more cumbersome getAbcXyz(). Actually, abcXyz is the "native" way of accessing a fact's attribute from within DRL patterns.
So, if getAbcXyz() works, but abcXyz does not, I suspect that something else is amiss, perhaps in the code of AnEvent.java, which hasn't been posted. -W On 09/05/2014, jlprat <jlp...@gmail.com> wrote: > Hi all, > > I'm developing an application with Drools 6.0.1.Final and I'm encountering > a > really strange problem I can't understand, and which I think it's due to a > bug in MVEL. > > I'm running some rules using fireUntilHalt and if I use the MVEL syntax > withing the RHS to access some bean properties, some rules don't get > executed when they should. However if I replace the bean property syntax > sugar for the real getter method, everything works as it should. > > I've created a little gist to illustrate this problem, it contains 2 drools > versions (one using MVEL another without) and a test to check the behavior. > You can check it Rule is not fired > <https://gist.github.com/jlprat/f20e6dbe976cff163d2c> > > Does anybody have an idea why this is happening? > > > Thank you in advance. > Josep Prat > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Rules-don-t-execute-using-MVEL-syntax-in-RHS-Possible-Bug-tp4029494.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > 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