[jboss-svn-commits] JBL Code SVN: r15541 - in labs/jbossrules/trunk/drools-jbrms/src/test: resources and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 3 10:14:43 EDT 2007


Author: KrisVerlaenen
Date: 2007-10-03 10:14:43 -0400 (Wed, 03 Oct 2007)
New Revision: 15541

Added:
   labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rfm
Removed:
   labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rf
Modified:
   labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/builder/ContentPackageAssemblerTest.java
Log:
JBRULES-1244: Ruleflows should have a package name
 - Process now has a packageName

Modified: labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/builder/ContentPackageAssemblerTest.java
===================================================================
--- labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/builder/ContentPackageAssemblerTest.java	2007-10-03 14:08:40 UTC (rev 15540)
+++ labs/jbossrules/trunk/drools-jbrms/src/test/java/org/drools/brms/server/builder/ContentPackageAssemblerTest.java	2007-10-03 14:14:43 UTC (rev 15541)
@@ -157,7 +157,7 @@
         AssetItem ruleFlow = pkg.addAsset( "ruleFlow", "" );
         ruleFlow.updateFormat( AssetFormats.RULE_FLOW_RF );
 
-        ruleFlow.updateBinaryContentAttachment( this.getClass().getResourceAsStream( "/ruleflow.rf" ) );
+        ruleFlow.updateBinaryContentAttachment( this.getClass().getResourceAsStream( "/ruleflow.rfm" ) );
         ruleFlow.checkin( "" );
 
         ContentPackageAssembler asm = new ContentPackageAssembler(pkg);

Deleted: labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rf
===================================================================
--- labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rf	2007-10-03 14:08:40 UTC (rev 15540)
+++ labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rf	2007-10-03 14:14:43 UTC (rev 15541)
@@ -1,150 +0,0 @@
-<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
-  <nodes id="2">
-    <entry>
-      <long>2</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl id="3">
-        <ruleFlowGroup>flowgroup-1</ruleFlowGroup>
-        <id>2</id>
-        <name>RuleSet1</name>
-        <incomingConnections id="4">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
-            <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="6">
-              <id>1</id>
-              <name>Start</name>
-              <incomingConnections id="7"/>
-              <outgoingConnections id="8">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
-              </outgoingConnections>
-            </from>
-            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
-          </org.drools.ruleflow.core.impl.ConnectionImpl>
-        </incomingConnections>
-        <outgoingConnections id="9">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
-            <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
-            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="11">
-              <type>1</type>
-              <constraints id="12"/>
-              <id>5</id>
-              <name>Split</name>
-              <incomingConnections id="13">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
-              </incomingConnections>
-              <outgoingConnections id="14">
-                <org.drools.ruleflow.core.impl.ConnectionImpl id="15">
-                  <type>1</type>
-                  <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="11"/>
-                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="16">
-                    <ruleFlowGroup>flowgroup-2</ruleFlowGroup>
-                    <id>3</id>
-                    <name>RuleSet2</name>
-                    <incomingConnections id="17">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
-                    </incomingConnections>
-                    <outgoingConnections id="18">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
-                        <type>1</type>
-                        <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="16"/>
-                        <to class="org.drools.ruleflow.core.impl.JoinImpl" id="20">
-                          <type>1</type>
-                          <id>6</id>
-                          <name>Join</name>
-                          <incomingConnections id="21">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="22">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="23">
-                                <ruleFlowGroup>flowgroup-3</ruleFlowGroup>
-                                <id>4</id>
-                                <name>RuleSet3</name>
-                                <incomingConnections id="24">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
-                                    <type>1</type>
-                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="11"/>
-                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="23"/>
-                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                </incomingConnections>
-                                <outgoingConnections id="26">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="22"/>
-                                </outgoingConnections>
-                              </from>
-                              <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="20"/>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
-                          </incomingConnections>
-                          <outgoingConnections id="27">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="28">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="20"/>
-                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="29">
-                                <ruleFlowGroup>flowgroup-4</ruleFlowGroup>
-                                <id>7</id>
-                                <name>RuleSet4</name>
-                                <incomingConnections id="30">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>
-                                </incomingConnections>
-                                <outgoingConnections id="31">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="32">
-                                    <type>1</type>
-                                    <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="29"/>
-                                    <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="33">
-                                      <id>8</id>
-                                      <name>End</name>
-                                      <incomingConnections id="34">
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
-                                      </incomingConnections>
-                                      <outgoingConnections id="35"/>
-                                    </to>
-                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                </outgoingConnections>
-                              </to>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          </outgoingConnections>
-                        </to>
-                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                    </outgoingConnections>
-                  </to>
-                </org.drools.ruleflow.core.impl.ConnectionImpl>
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
-              </outgoingConnections>
-            </to>
-          </org.drools.ruleflow.core.impl.ConnectionImpl>
-        </outgoingConnections>
-      </org.drools.ruleflow.core.impl.RuleSetNodeImpl>
-    </entry>
-    <entry>
-      <long>4</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="23"/>
-    </entry>
-    <entry>
-      <long>8</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="33"/>
-    </entry>
-    <entry>
-      <long>6</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="20"/>
-    </entry>
-    <entry>
-      <long>1</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl reference="6"/>
-    </entry>
-    <entry>
-      <long>3</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="16"/>
-    </entry>
-    <entry>
-      <long>7</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="29"/>
-    </entry>
-    <entry>
-      <long>5</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="11"/>
-    </entry>
-  </nodes>
-  <variables id="36"/>
-  <lastNodeId>8</lastNodeId>
-  <id>0</id>
-  <name>flow</name>
-  <type>Workflow</type>
-</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file

Copied: labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rfm (from rev 15524, labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rf)
===================================================================
--- labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rfm	                        (rev 0)
+++ labs/jbossrules/trunk/drools-jbrms/src/test/resources/ruleflow.rfm	2007-10-03 14:14:43 UTC (rev 15541)
@@ -0,0 +1,151 @@
+<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
+  <nodes id="2">
+    <entry>
+      <long>2</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl id="3">
+        <ruleFlowGroup>flowgroup-1</ruleFlowGroup>
+        <id>2</id>
+        <name>RuleSet1</name>
+        <incomingConnections id="4">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="6">
+              <id>1</id>
+              <name>Start</name>
+              <incomingConnections id="7"/>
+              <outgoingConnections id="8">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
+              </outgoingConnections>
+            </from>
+            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+        </incomingConnections>
+        <outgoingConnections id="9">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
+            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="11">
+              <type>1</type>
+              <constraints id="12"/>
+              <id>5</id>
+              <name>Split</name>
+              <incomingConnections id="13">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
+              </incomingConnections>
+              <outgoingConnections id="14">
+                <org.drools.ruleflow.core.impl.ConnectionImpl id="15">
+                  <type>1</type>
+                  <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="11"/>
+                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="16">
+                    <ruleFlowGroup>flowgroup-2</ruleFlowGroup>
+                    <id>3</id>
+                    <name>RuleSet2</name>
+                    <incomingConnections id="17">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
+                    </incomingConnections>
+                    <outgoingConnections id="18">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
+                        <type>1</type>
+                        <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="16"/>
+                        <to class="org.drools.ruleflow.core.impl.JoinImpl" id="20">
+                          <type>1</type>
+                          <id>6</id>
+                          <name>Join</name>
+                          <incomingConnections id="21">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="22">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="23">
+                                <ruleFlowGroup>flowgroup-3</ruleFlowGroup>
+                                <id>4</id>
+                                <name>RuleSet3</name>
+                                <incomingConnections id="24">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
+                                    <type>1</type>
+                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="11"/>
+                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="23"/>
+                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                </incomingConnections>
+                                <outgoingConnections id="26">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="22"/>
+                                </outgoingConnections>
+                              </from>
+                              <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="20"/>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
+                          </incomingConnections>
+                          <outgoingConnections id="27">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="28">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="20"/>
+                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="29">
+                                <ruleFlowGroup>flowgroup-4</ruleFlowGroup>
+                                <id>7</id>
+                                <name>RuleSet4</name>
+                                <incomingConnections id="30">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>
+                                </incomingConnections>
+                                <outgoingConnections id="31">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="32">
+                                    <type>1</type>
+                                    <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="29"/>
+                                    <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="33">
+                                      <id>8</id>
+                                      <name>End</name>
+                                      <incomingConnections id="34">
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
+                                      </incomingConnections>
+                                      <outgoingConnections id="35"/>
+                                    </to>
+                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                </outgoingConnections>
+                              </to>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                          </outgoingConnections>
+                        </to>
+                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                    </outgoingConnections>
+                  </to>
+                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
+              </outgoingConnections>
+            </to>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+        </outgoingConnections>
+      </org.drools.ruleflow.core.impl.RuleSetNodeImpl>
+    </entry>
+    <entry>
+      <long>4</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="23"/>
+    </entry>
+    <entry>
+      <long>8</long>
+      <org.drools.ruleflow.core.impl.EndNodeImpl reference="33"/>
+    </entry>
+    <entry>
+      <long>6</long>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="20"/>
+    </entry>
+    <entry>
+      <long>1</long>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="6"/>
+    </entry>
+    <entry>
+      <long>3</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="16"/>
+    </entry>
+    <entry>
+      <long>7</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="29"/>
+    </entry>
+    <entry>
+      <long>5</long>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="11"/>
+    </entry>
+  </nodes>
+  <variables id="36"/>
+  <lastNodeId>8</lastNodeId>
+  <id>0</id>
+  <name>flow</name>
+  <type>Workflow</type>
+  <packageName>testPackageWithRuleFlow</packageName>
+</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file




More information about the jboss-svn-commits mailing list