[rules-users] MVEL modify block

Juraj Bednar asterisk4juraj at gmail.com
Fri Apr 11 18:33:42 EDT 2008


Hello,


trying as hard as I can, I am not able to do method calls within MVEL
modify block, as I can
do with Java block.

For example:

modify($p) { addDescription("aaa") }

This works in Java, but not in MVEL. I was not able to find out how to
call methods (not
set properties, which works quite well). Any ideas what am I doing wrong?

 Does MVEL support method calls within modify block at all? If not,
how can I safely
call a method, that modifies fact attributes from MVEL? (I am not
using shadow facts).


 Thanks,

   Juraj.



More information about the rules-users mailing list