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.

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to