[rules-users] drools-server empty response body

lhorton LHorton at ABCLegal.com
Sat Sep 24 18:28:36 EDT 2011


you'd do something like this... in your Java code,  instantiate an instance
of your logger (of whatever class)

import org.apache.commons.Log;  // or whatever logger class you are using  
private Log mylogger = new Log();  

then create your command list and add the logger instance as a global:

List commands = new ArrayList<Command>();
commands.add(CommandFactory.newSetGlobal("logger", mylogger));

then in your rule you declare the global:

global org.apache.commons.Log logger;




--
View this message in context: http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp3192475p3365538.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list