OoompaLoompaDate holiday2= new OoompaLoompaDate(2009,2,10);
OoompaLoompaDate holiday1= new OoompaLoompaDate(2009,3,17);
//Set these into a new RuleSource object
RuleSource ruleSource = new RuleSource();
ruleSource.setRulesLocation(RULES_FILES);
//Add the globals
ruleSource.addGlobal(NEXT_AVAILABLE_SHIPMENT_DATE, new OoompaLoompaDate(2009,02,03));
//Add the facts
ruleSource.addFact(candyBarOrder);
ruleSource.addFact(holiday1);
ruleSource.addFact(holiday2);
// A lot of the running rules uses the same code. The RuleRunner (code in this project)
// keeps this code in one place. It needs to know
// - the name(s) of the files containing our rules
// - the fact object(s) containing the information to be passed in and out of our rules