The form
$variable.Attrib()
isn't the usual style (cf. JavaBeans). Use either
$variable.attrib
or
$variable.getAttrib()
and, when there is no getAttrib() also
$variable.attrib()
should work e.g., to a Collection's size
-W
On 05/10/2012, himansu.nayak <himansumca(a)gmail.com> wrote:
Hi,
I am trying to use dialect "mvel" in my template and trying to use fields
defined in
my domain object. but not of them are getting access. when i removed
dialect
"mvel" then i can accss the fields using the getter's method.
ex:
package com.drools.rules;
dialect "mvel"
.
.
.
when
$admissionObj.Age() > @{Age0} &&
$admissionObj.Age() < @{Age1} // this line throws exception
// the same code works fine if i use getAge() instead of Age() after
removing the dialect "mvel"
-----
Thanks...
Himansu
--
View this message in context:
http://drools.46999.n3.nabble.com/dialect-mvel-not-working-in-drools-temp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users