[jboss-svn-commits] JBL Code SVN: r22436 - labs/jbossrules/trunk/drools-decisiontables/src/test/resources/templates.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Sep 5 07:25:21 EDT 2008
Author: stevearoonie
Date: 2008-09-05 07:25:21 -0400 (Fri, 05 Sep 2008)
New Revision: 22436
Added:
labs/jbossrules/trunk/drools-decisiontables/src/test/resources/templates/test_template4.drl
Log:
JBRULES-1752 - ensure data is not parsed past the number of columns defined in the template.
Added: labs/jbossrules/trunk/drools-decisiontables/src/test/resources/templates/test_template4.drl
===================================================================
--- labs/jbossrules/trunk/drools-decisiontables/src/test/resources/templates/test_template4.drl (rev 0)
+++ labs/jbossrules/trunk/drools-decisiontables/src/test/resources/templates/test_template4.drl 2008-09-05 11:25:21 UTC (rev 22436)
@@ -0,0 +1,29 @@
+template header
+colour
+minSize
+maxSize
+
+
+package rulesetName;
+#generated from Decision Table
+import blah.class1
+import blah.class2
+
+global Class1 obj1;
+function test() {
+ This is a function block
+}
+template "This_Is_Rule_Name_Prefix"
+colour
+minSize
+maxSize
+rule "This_Is_Rule_Name_Prefix @{row.rowNumber}"
+ when
+ Foo(myObject.getColour().equals(@{colour}), myObject.size() > @{minSize})
+ b: Bar()
+ eval(myObject.size() < @{maxSize})
+ then
+ myObject.setIsValid(true);
+end
+end template
+
More information about the jboss-svn-commits
mailing list