[rules-users] Import Functions in Guvnor

Toni Rikkola toni.rikkola at gmail.com
Wed Apr 27 03:44:06 EDT 2011


You need to use free form text or make a DSL for the function if you want to use it in the RHS.

Toni

On Dec 1, 2010, at 7:24 AM, Pankaj Khattar wrote:

> 
> Can anybody share that how to import java function in the guvnor & use them
> in writing rules in guvnor.
> 
> For example i have a drl file in which i have
> import function com.alu.ae.ais.smp.fm.drools.service.Function.delayAlert;
> 
> in which 'Function' is the class & 'delayAlert' a method in the class, the
> rule is as 
> 
> rule "Delay Alert"
> 	no-loop true
> 	dialect "mvel"
> 	lock-on-active
> 	when
> 		
> 	then
> 		delayAlert(<method parameter>);
> end
> 
> -- 
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Import-Functions-in-Guvnor-tp1997244p1997244.html
> Sent from the Drools - User 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