[jboss-jira] [JBoss JIRA] Created: (JBRULES-2854) the drools-expert documentation speaks of kbase.addKnowledgePackages(...) but there is no information on how to create a kbase
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Tue Dec 28 11:03:18 EST 2010
the drools-expert documentation speaks of kbase.addKnowledgePackages(...) but there is no information on how to create a kbase
------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-2854
URL: https://issues.jboss.org/browse/JBRULES-2854
Project: Drools
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Geoffrey De Smet
Assignee: Mark Proctor
Priority: Optional
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e254
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add( ResourceFactory.newClassPathResource( "licenseApplication.drl", getClass() ),
ResourceType.DRL );
if ( kbuilder.hasErrors() ) {
System.err.println( builder.getErrors().toString() );
}
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() ); // <======= Where does kbase come from?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list