[rules-users] Initialize a fact
drools_user
jkraemer at cs.tufts.edu
Thu Oct 18 20:21:07 EDT 2007
Hi,
How do I initialize a global fact in the drl file? I do not want to use the
Drools API in order to better use the JSR94 API.
# global variable
global List objectList ;
# Part that does not work
objectList = new ArrayList() ;
# rule
rule "list-rule"
when
then
for(int i = 0; i< objectList.size(); i++){
#Do Something
}
end
Thanks in advance
--
View this message in context: http://www.nabble.com/Initialize-a-fact-tf4649832.html#a13284006
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list