[rules-users] re:Shadow Facts

J Michael Dean mdean77 at comcast.net
Sun Feb 15 13:12:25 EST 2009


Sorry - in previous email forgot to include the following code, as the  
NPE occurs when this routine is called at the addPackage call.



	private void readDRLintoPackage(String rulesFile) throws  
DroolsParserException, IOException, Exception {
		Reader source = new  
InputStreamReader(RulesEngine.class.getResourceAsStream("/" +  
rulesFile));
		PackageBuilder builder = new PackageBuilder();
		builder.addPackageFromDrl(source);
		Package pkg = builder.getPackage();
		rules = RuleBaseFactory.newRuleBase();
		rules.addPackage(pkg);
	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090215/d03e8a49/attachment.html 


More information about the rules-users mailing list