[jboss-svn-commits] JBL Code SVN: r24333 - labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Dec 9 19:18:28 EST 2008
Author: Rikkola
Date: 2008-12-09 19:18:27 -0500 (Tue, 09 Dec 2008)
New Revision: 24333
Modified:
labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java
Log:
CDSSExample was not working because ClinicalPathwayX.drl was not added in to the knowledge builder.
Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java 2008-12-10 00:01:42 UTC (rev 24332)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java 2008-12-10 00:18:27 UTC (rev 24333)
@@ -34,7 +34,7 @@
RecommendationService recommendationService = new RecommendationService();
ksession.setGlobal( "recommendationService",
recommendationService );
-
+
// create patient
Patient patient = new Patient();
patient.setName( "John Doe" );
@@ -89,12 +89,16 @@
kbuilder.add( ResourceFactory.newClassPathResource( "/org/drools/examples/cdss/ClinicalPathwayX.rf", CDSSExample.class ),
ResourceType.DRF );
+ kbuilder.add( ResourceFactory.newClassPathResource( "/org/drools/examples/cdss/ClinicalPathwayX.drl", CDSSExample.class ),
+ ResourceType.DRL );
+
kbuilder.add( ResourceFactory.newClassPathResource( "/org/drools/examples/cdss/TreatmentX.rf", CDSSExample.class ),
ResourceType.DRF );
kbuilder.add( ResourceFactory.newClassPathResource( "/org/drools/examples/cdss/TreatmentY.rf", CDSSExample.class ) ,
ResourceType.DRF );
+
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
kbase.addKnowledgePackages( kbuilder.getKnowledgePackages() );
More information about the jboss-svn-commits
mailing list