[rules-users] Injecting methods dynamically with groovy in types used by the rules.

Mark Proctor mproctor at codehaus.org
Sat Dec 15 04:14:06 EST 2012


On 14 Dec 2012, at 21:53, lumi <luminita3 at gmail.com> wrote:

> Is it possible to add methods in groovy dynamically (with metaclass) and then
> call them from the drls? 
> 
> I tried a simple test but I got a "unable to resolve method" error at
> runtime.
sorry no. Drools, like java, wouldn't know about these dynamic methods.

M
> 
> Thank you for any suggestions,
> Lumi
> 
> 
> 
> 
> --
> View this message in context: http://drools.46999.n3.nabble.com/Injecting-methods-dynamically-with-groovy-in-types-used-by-the-rules-tp4021211.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