[rules-users] Get a value in "when" clause and use it in "then" clasuse

YamilBracho yamilbracho at hotmail.com
Fri Feb 5 15:07:24 EST 2010


Hi 
I have this rule in my drl file : 

rule "cuentaOrigen Numerico 20 digitos y Modulo 11" 
   when 
     $detalle : ArchivoDetalleBean( msg=
eval(!ValidationUtils.validarNumeroCuenta(cuentaOrigen)) ); 
   then 
     errorList.add(new ErrorPlugInBean(1, msg)); 
end 

I would like to get the "msg" String var and use it in the "then" clasuse 
validarNumeroCuenta() ia a method that return a string 

How can I do that ? 

TIA 
Yamil 
-- 
View this message in context: http://n3.nabble.com/Get-a-value-in-when-clause-and-use-it-in-then-clasuse-tp185076p189285.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list