[seam-commits] Seam SVN: r11411 - in branches/community/Seam_2_2_Drools5: src/main/org/jboss/seam and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Aug 20 13:16:26 EDT 2009


Author: tsurdilovic
Date: 2009-08-20 13:16:26 -0400 (Thu, 20 Aug 2009)
New Revision: 11411

Modified:
   branches/community/Seam_2_2_Drools5/examples/drools/resources/WEB-INF/components.xml
   branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools-2.2.xsd
   branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools/StatefulKnowledgeSession.java
Log:
Drools5 Integration.

Modified: branches/community/Seam_2_2_Drools5/examples/drools/resources/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_2_Drools5/examples/drools/resources/WEB-INF/components.xml	2009-08-20 16:40:30 UTC (rev 11410)
+++ branches/community/Seam_2_2_Drools5/examples/drools/resources/WEB-INF/components.xml	2009-08-20 17:16:26 UTC (rev 11411)
@@ -25,7 +25,8 @@
     	</drools:change-sets>
     </drools:knowledge-agent>
     
-    <drools:stateful-knowledge-session name="ksession" knowledge-base="#{kbase}" knowledge-session-config="ksessionconfig.properties">
+    <drools:stateful-knowledge-session name="ksession" knowledge-base="#{kbase}" knowledge-session-config="ksessionconfig.properties"
+    audit-log="/home/tsurdilo/Desktop/ksession">
     	<drools:event-listeners>
     		<value>org.drools.event.rule.DebugAgendaEventListener</value>
     		<value>org.drools.event.rule.DebugWorkingMemoryEventListener</value>
@@ -41,7 +42,8 @@
     
     <drools:stateful-knowledge-session name="ksession2" 
           knowledge-base="#{kbase2}" 
-          knowledge-session-config="ksessionconfig.properties">
+          knowledge-session-config="ksessionconfig.properties"
+          audit-log="/home/tsurdilo/Desktop/ksession2">
     	<drools:event-listeners>
     		<value>org.drools.event.rule.DebugAgendaEventListener</value>
     		<value>org.drools.event.rule.DebugWorkingMemoryEventListener</value>
@@ -60,7 +62,8 @@
     <drools:stateful-knowledge-session name="ksession3" 
           knowledge-base="#{kbase3}" 
           knowledge-session-config="ksessionconfig.properties"
-          fact-provider="#{testFactProvider}">
+          fact-provider="#{testFactProvider}"
+          audit-log="/home/tsurdilo/Desktop/ksession3">
     	<drools:event-listeners>
     		<value>org.drools.event.rule.DebugAgendaEventListener</value>
     		<value>org.drools.event.rule.DebugWorkingMemoryEventListener</value>
@@ -79,7 +82,8 @@
     	  auto-create="true"
           knowledge-base="#{kbase4}" 
           knowledge-session-config="ksessionconfig.properties"
-          fact-provider="#{testTemplateFactProvider}">
+          fact-provider="#{testTemplateFactProvider}"
+          audit-log="/home/tsurdilo/Desktop/ksession4">
     	<drools:event-listeners>
     		<value>org.drools.event.rule.DebugAgendaEventListener</value>
     		<value>org.drools.event.rule.DebugWorkingMemoryEventListener</value>

Modified: branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools/StatefulKnowledgeSession.java
===================================================================
--- branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools/StatefulKnowledgeSession.java	2009-08-20 16:40:30 UTC (rev 11410)
+++ branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools/StatefulKnowledgeSession.java	2009-08-20 17:16:26 UTC (rev 11411)
@@ -90,6 +90,8 @@
          }
          
          if(auditLog != null) {
+            auditLog+=System.currentTimeMillis();
+            log.info("Setting auding log: " + auditLog);
             krLogger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, auditLog);
          }
       }
@@ -186,10 +188,5 @@
    public void setAuditLog(String auditLog)
    {
       this.auditLog = auditLog;
-   }
-
-   
-   
-   
-     
+   }   
 }

Modified: branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools-2.2.xsd
===================================================================
--- branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools-2.2.xsd	2009-08-20 16:40:30 UTC (rev 11410)
+++ branches/community/Seam_2_2_Drools5/src/main/org/jboss/seam/drools-2.2.xsd	2009-08-20 17:16:26 UTC (rev 11411)
@@ -103,7 +103,7 @@
 		<xs:attribute name="event-listeners" type="components:string" />
 		<xs:attribute name="knowledge-session-config" type="components:string" />
 		<xs:attribute name="fact-provider" type="components:expressionType"/>
-		<xs:attribute name="audit-log" type="components:string">
+		<xs:attribute name="audit-log" type="components:string"/>
 	</xs:attributeGroup>
 	<xs:element name="globals" type="components:multiValuedProperty" />
 



More information about the seam-commits mailing list