[rules-users] accessing a drools variable
rajivharris
rajivharris at gmail.com
Thu Nov 4 13:15:24 EDT 2010
Hi,
I am setting a String variable as global. And trying the access the same in
my Java program. Can anyone help on how to do this.
code snippet:
global String prodName;
rule "Your First Rule"
when
#conditions
eval (true)
then
#actions
prodName= getName();
System.out.println( "name:" +prodName);
end
Thanks,
Rajiv.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/accessing-a-drools-variable-tp1843203p1843203.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list