[jboss-svn-commits] JBL Code SVN: r14976 - labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Sep 9 17:55:28 EDT 2007
Author: mark.proctor at jboss.com
Date: 2007-09-09 17:55:28 -0400 (Sun, 09 Sep 2007)
New Revision: 14976
Modified:
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/CopyIdentifiersGlobalExporter.java
Log:
JBRULES-1165 StatelessSessionResult should have getGlobal
-now will do all globals if String[].length == 0 and not just null.
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/CopyIdentifiersGlobalExporter.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/CopyIdentifiersGlobalExporter.java 2007-09-09 21:54:42 UTC (rev 14975)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/CopyIdentifiersGlobalExporter.java 2007-09-09 21:55:28 UTC (rev 14976)
@@ -37,7 +37,7 @@
}
public GlobalResolver export(WorkingMemory workingMemory) {
- if ( this.identifiers == null ) {
+ if ( this.identifiers == null || this.identifiers.length == 0 ) {
// no identifiers, to get all the identifiers from that defined in
// the rulebase
Map map = ((InternalRuleBase)workingMemory.getRuleBase()).getGlobals();
More information about the jboss-svn-commits
mailing list