[rules-users] dialect "mvel" not working in drools template

Wolfgang Laun wolfgang.laun at gmail.com
Fri Oct 5 02:57:47 EDT 2012


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 at 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-template-tp4020138.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list