[jboss-svn-commits] JBL Code SVN: r13137 - labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jul 5 21:15:22 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-07-05 21:15:22 -0400 (Thu, 05 Jul 2007)
New Revision: 13137

Modified:
   labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java/javaInvokers.mvel
Log:
JBRULES-778 Column fact handle used in consequences even for field bindings
-no longer duplicates the __handle__ creation

Modified: labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java/javaInvokers.mvel
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java/javaInvokers.mvel	2007-07-06 01:10:11 UTC (rev 13136)
+++ labs/jbossrules/trunk/drools-compiler/src/main/resources/org/drools/rule/builder/dialect/java/javaInvokers.mvel	2007-07-06 01:15:22 UTC (rev 13137)
@@ -282,10 +282,9 @@
         org.drools.rule.Declaration[] declarations = rule.getDeclarations();                                                  
 
         @foreach{declarationTypes, declarations, indexes, notPatterns as type, declr, index, notPattern}
-          @if{notPattern}@{declr.identifier}__Handle__ =  (org.drools.common.InternalFactHandle) knowledgeHelper.getWorkingMemory().getFactHandle( @{declr.identifier} );@else{}
+          @if{notPattern}@{declr.identifier}org.drools.common.InternalFactHandle __Handle__ =  (org.drools.common.InternalFactHandle) knowledgeHelper.getWorkingMemory().getFactHandle( @{declr.identifier} );@else{}
           org.drools.common.InternalFactHandle @{declr.identifier}__Handle__ = ( org.drools.common.InternalFactHandle ) tuple.get( knowledgeHelper.getDeclaration( declarations[@{index}].getIdentifier() ) );@end{}
           @{type} @{declr.identifier} = ( @{type} )  declarations[@{index}].@{declr.extractor.nativeReadMethod.name}( (org.drools.common.InternalWorkingMemory) workingMemory, @{declr.identifier}__Handle__.getObject() );
-
         @end{}
         
         @foreach{globalTypes, globals as type, identifier} @{type} @{identifier} = ( @{type} ) workingMemory.getGlobal( "@{identifier}" ); 




More information about the jboss-svn-commits mailing list