[jboss-svn-commits] JBL Code SVN: r13136 - 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:10:11 EDT 2007
Author: mark.proctor at jboss.com
Date: 2007-07-05 21:10:11 -0400 (Thu, 05 Jul 2007)
New Revision: 13136
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 00:59:18 UTC (rev 13135)
+++ 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)
@@ -282,9 +282,10 @@
org.drools.rule.Declaration[] declarations = rule.getDeclarations();
@foreach{declarationTypes, declarations, indexes, notPatterns as type, declr, index, notPattern}
- org.drools.common.InternalFactHandle @{declr.identifier}__Handle__ = ( org.drools.common.InternalFactHandle ) tuple.get( knowledgeHelper.getDeclaration( declarations[@{index}].getIdentifier() ) );
+ @if{notPattern}@{declr.identifier}__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() );
- @if{notPattern}@{declr.identifier}__Handle__ = (org.drools.common.InternalFactHandle) knowledgeHelper.getWorkingMemory().getFactHandle( @{declr.identifier} );@end{}
+
@end{}
@foreach{globalTypes, globals as type, identifier} @{type} @{identifier} = ( @{type} ) workingMemory.getGlobal( "@{identifier}" );
More information about the jboss-svn-commits
mailing list