[jboss-svn-commits] JBL Code SVN: r15218 - in labs/jbossrules/trunk/drools-examples/drools-examples-drl: src/main/java/org/drools/examples and 1 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 18 22:51:17 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-09-18 22:51:17 -0400 (Tue, 18 Sep 2007)
New Revision: 15218

Modified:
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/.classpath
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/NumberGuessExample.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/StateExampleUsingSalience.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/Fibonacci.drl
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/HelloWorld.drl
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.drl
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rf
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rfm
Log:
-updated examples


Property changes on: labs/jbossrules/trunk/drools-examples/drools-examples-drl
___________________________________________________________________
Name: svn:ignore
   + target


Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/.classpath
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/.classpath	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/.classpath	2007-09-19 02:51:17 UTC (rev 15218)
@@ -5,9 +5,9 @@
 	<classpathentry excluding="**/*.java" kind="src" path="src/main/rules"/>
 	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
 	<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="con" path="DROOLS/JBoss Rules"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_10"/>
 	<classpathentry kind="lib" path="lib/foxtrot-2.0.jar"/>
 	<classpathentry kind="lib" path="lib/jgoodies-forms-1.0.4.jar"/>
+	<classpathentry kind="con" path="DROOLS/Drools"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/NumberGuessExample.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/NumberGuessExample.java	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/NumberGuessExample.java	2007-09-19 02:51:17 UTC (rev 15218)
@@ -95,7 +95,7 @@
         private int smallest;
         private int guessCount;
 
-        public void begin() {
+        public Game() {
             this.guessCount = 0;
             this.biggest = 0;
             this.smallest = 100;

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/StateExampleUsingSalience.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/StateExampleUsingSalience.java	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/StateExampleUsingSalience.java	2007-09-19 02:51:17 UTC (rev 15218)
@@ -45,9 +45,10 @@
                         dynamic );
 
         session.fireAllRules();
-        session.dispose();
 
         logger.writeToDisk();
+        
+        session.dispose(); // Stateful rule session must always be disposed when finished        
     }
 
 }

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/Fibonacci.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/Fibonacci.drl	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/Fibonacci.drl	2007-09-19 02:51:17 UTC (rev 15218)
@@ -2,42 +2,32 @@
 
 import org.drools.examples.FibonacciExample.Fibonacci;
 
+dialect "mvel"
+
 rule Recurse
-	salience 10
-	when
-		f : Fibonacci ( value == -1 )
-	then
-		insert( new Fibonacci( f.getSequence() - 1 ) );
-		System.out.println( "recurse for " + f.getSequence() );
+    salience 10
+    when
+        not ( Fibonacci ( sequence == 1 ) )    
+        f : Fibonacci ( value == -1 )
+    then
+        insert( new Fibonacci( f.sequence - 1 ) );
+        System.out.println( "recurse for " + f.sequence );
 end
 
-rule Bootstrap1
-	salience 20
-	when
-		f : Fibonacci( sequence == 1, value == -1 )
-	then 
-		f.setValue( 1 );		
-		update( f );
-		System.out.println( f.getSequence() + " == " + f.getValue() );
+rule Bootstrap
+    when
+        f : Fibonacci( sequence == 1 || == 2, value == -1 ) // this is a multi-restriction || on a single field
+    then 
+        modify ( f ){ value = 1 };
+        System.out.println( f.sequence + " == " + f.value );
 end
 
-rule Bootstrap2
-	when
-		f : Fibonacci( sequence == 2, value == -1 )
-	then 
-		f.setValue( 1 );		
-		update( f );
-		System.out.println( f.getSequence() + " == " + f.getValue() );		
-end
-
 rule Calculate
-	when
-		f1 : Fibonacci( s1 : sequence, value != -1 )
-		f2 : Fibonacci( s2 : sequence == (s1 + 1 ), value != -1 )
- 		f3 : Fibonacci( sequence == (s2 + 1 ), value == -1 )				
-	then	
-		f3.setValue( f1.getValue() + f2.getValue() );
-		update( f3 );
-		retract( f1 );
-		System.out.println( f3.getSequence() + " == " + f3.getValue() );
-end	
+    when
+        f1 : Fibonacci( s1 : sequence, value != -1 ) // here we bind sequence
+        f2 : Fibonacci( sequence == (s1 + 1 ), value != -1 ) // here we don't, just to demonstrate the different way bindings can be used
+        f3 : Fibonacci( s3 : sequence == (f2.sequence + 1 ), value == -1 )              
+    then    
+        modify ( f3 ) { value = f1.value + f2.value };
+        System.out.println( s3 + " == " + f3.value ); // see how you can access pattern and field  bindings
+end 

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/HelloWorld.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/HelloWorld.drl	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/HelloWorld.drl	2007-09-19 02:51:17 UTC (rev 15218)
@@ -10,6 +10,7 @@
 	System.out.println( message ); 
 	modify ( m ) { message = "Goodbyte cruel world",
 	               status = Message.GOODBYE };
+	System.out.println( message ); 	               
 end
 
 rule "Good Bye"
@@ -18,4 +19,6 @@
 		Message( status == Message.GOODBYE, message : message )
 	then
 		System.out.println( message ); 
+	System.out.println( message ); 
+	System.out.println( message ); 			
 end
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.drl	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.drl	2007-09-19 02:51:17 UTC (rev 15218)
@@ -21,13 +21,13 @@
 	then
 	    System.out.println( "You have " + ( rules.allowedGuesses - game.guessCount ) + " out of " + rules.allowedGuesses + " guesses left.\nPlease enter your guess from 0 to " + rules.maxRange );
         br = new BufferedReader( new InputStreamReader( System.in ) );
-        modify ( game ) { guessCount = game.guessCount + 1 }
+        modify ( game ) { guessCount += 1 }
         i = br.readLine();        
 	    insert( new Guess( i ) );
 end	 
 
-rule "Record the highest Guess"
-	ruleflow-group "Too High"
+rule "Record the biggest Guess"
+	ruleflow-group "Guess"
 	no-loop
 	when    
 	    game : Game( biggestGuess : biggest )
@@ -36,11 +36,11 @@
         modify ( game ) { biggest = $value };
 end	 
 
-rule "Record the lowest Guess"
-	ruleflow-group "Too Low"
+rule "Record the smallest Guess"
+	ruleflow-group "Guess"
 	no-loop	
 	when    
-	    Game( smallestGuess : smallest )
+	    game : Game( smallestGuess : smallest )
 	    Guess( $value : value < smallestGuess )
 	then
         modify ( game ) { smallest = $value };
@@ -54,12 +54,12 @@
         retract( guess );
 end	
 
-
 rule "No more Guesses notification"
 	ruleflow-group "No more Guesses"
 	when
-        $r : RandomNumber()    
+        r : RandomNumber()    
+	    game : Game( )        
 	then	
-        System.out.println( "You have no more guesses\nThe correct guess was " + $r.value );
-end	
-
+        System.out.println( "\nYou have no more guesses\nThe correct guess was " + r.value );
+        System.out.println( "Your smallest guess  was " + game.smallest + "\nYour biggest guess  was " + game.biggest );
+end	
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rf
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rf	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rf	2007-09-19 02:51:17 UTC (rev 15218)
@@ -8,8 +8,8 @@
             <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
               <default>
                 <constraint id="4">
-                  <x>470</x>
-                  <y>392</y>
+                  <x>466</x>
+                  <y>338</y>
                   <width>80</width>
                   <height>40</height>
                 </constraint>
@@ -37,144 +37,107 @@
                                     <type>2</type>
                                     <constraints id="15">
                                       <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="16">
-                                          <name>No More Guesses</name>
-                                          <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
-Game(  guessCount &gt;= allowed )</constraint>
-                                          <priority>1</priority>
-                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                      </entry>
-                                      <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="16">
                                           <type>1</type>
                                           <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="18">
+                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="17">
                                             <type>2</type>
                                             <id>10</id>
                                             <name>More guesses Join</name>
-                                            <incomingConnections id="19">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="20">
+                                            <incomingConnections id="18">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
                                                 <type>1</type>
-                                                <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="21">
+                                                <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="20">
                                                   <id>1</id>
                                                   <name>Start</name>
-                                                  <incomingConnections id="22"/>
-                                                  <outgoingConnections id="23">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
+                                                  <incomingConnections id="21"/>
+                                                  <outgoingConnections id="22">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
                                                   </outgoingConnections>
                                                 </from>
-                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="18"/>
+                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
                                               </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
                                             </incomingConnections>
-                                            <outgoingConnections id="24">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
+                                            <outgoingConnections id="23">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
                                                 <type>1</type>
-                                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="18"/>
-                                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="26">
+                                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
+                                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="25">
                                                   <ruleFlowGroup>Guess</ruleFlowGroup>
                                                   <id>2</id>
                                                   <name>Guess</name>
-                                                  <incomingConnections id="27">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
+                                                  <incomingConnections id="26">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
                                                   </incomingConnections>
-                                                  <outgoingConnections id="28">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="29">
+                                                  <outgoingConnections id="27">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="28">
                                                       <type>1</type>
-                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="26"/>
-                                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" id="30">
+                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>
+                                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" id="29">
                                                         <type>2</type>
-                                                        <constraints id="31">
+                                                        <constraints id="30">
                                                           <entry>
-                                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="32">
+                                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="31">
                                                               <type>1</type>
-                                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="30"/>
-                                                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="33">
-                                                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="34">
-                                                                  <consequence>System.out.println( &quot;Your guess was too high&quot; );</consequence>
+                                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="29"/>
+                                                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="32">
+                                                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="33">
+                                                                  <consequence>System.out.println( &quot;Your guess was too low&quot; );</consequence>
                                                                 </action>
-                                                                <id>20</id>
-                                                                <name>Too High</name>
-                                                                <incomingConnections id="35">
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
+                                                                <id>19</id>
+                                                                <name>Too Low</name>
+                                                                <incomingConnections id="34">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>
                                                                 </incomingConnections>
-                                                                <outgoingConnections id="36">
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
+                                                                <outgoingConnections id="35">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="36">
                                                                     <type>1</type>
-                                                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="33"/>
-                                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="38">
-                                                                      <ruleFlowGroup>Too High</ruleFlowGroup>
-                                                                      <id>3</id>
-                                                                      <name>Too High</name>
-                                                                      <incomingConnections id="39">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                                      </incomingConnections>
-                                                                      <outgoingConnections id="40">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="41">
+                                                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="32"/>
+                                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="37">
+                                                                      <type>2</type>
+                                                                      <id>8</id>
+                                                                      <name>incorrect guess</name>
+                                                                      <incomingConnections id="38">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="39">
                                                                           <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="38"/>
-                                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="42">
-                                                                            <type>2</type>
-                                                                            <id>8</id>
-                                                                            <name>incorrect guess</name>
-                                                                            <incomingConnections id="43">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="41"/>
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="44">
+                                                                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="40">
+                                                                            <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="41">
+                                                                              <consequence>System.out.println( &quot;Your guess was too high&quot; );</consequence>
+                                                                            </action>
+                                                                            <id>20</id>
+                                                                            <name>Too High</name>
+                                                                            <incomingConnections id="42">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="43">
                                                                                 <type>1</type>
-                                                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="45">
-                                                                                  <ruleFlowGroup>Too Low</ruleFlowGroup>
-                                                                                  <id>4</id>
-                                                                                  <name>Too Low</name>
-                                                                                  <incomingConnections id="46">
-                                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="47">
-                                                                                      <type>1</type>
-                                                                                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="48">
-                                                                                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="49">
-                                                                                          <consequence>System.out.println( &quot;Your guess was too low&quot; );</consequence>
-                                                                                        </action>
-                                                                                        <id>19</id>
-                                                                                        <name>Too Low</name>
-                                                                                        <incomingConnections id="50">
-                                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="51">
-                                                                                            <type>1</type>
-                                                                                            <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="30"/>
-                                                                                            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="48"/>
-                                                                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                                        </incomingConnections>
-                                                                                        <outgoingConnections id="52">
-                                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="47"/>
-                                                                                        </outgoingConnections>
-                                                                                      </from>
-                                                                                      <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="45"/>
-                                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                                  </incomingConnections>
-                                                                                  <outgoingConnections id="53">
-                                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="44"/>
-                                                                                  </outgoingConnections>
-                                                                                </from>
-                                                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="42"/>
+                                                                                <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="29"/>
+                                                                                <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="40"/>
                                                                               </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                                             </incomingConnections>
-                                                                            <outgoingConnections id="54">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="55">
+                                                                            <outgoingConnections id="44">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="39"/>
+                                                                            </outgoingConnections>
+                                                                          </from>
+                                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="37"/>
+                                                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="36"/>
+                                                                      </incomingConnections>
+                                                                      <outgoingConnections id="45">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="46">
+                                                                          <type>1</type>
+                                                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="37"/>
+                                                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="47">
+                                                                            <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
+                                                                            <id>7</id>
+                                                                            <name>Guess incorrect</name>
+                                                                            <incomingConnections id="48">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="46"/>
+                                                                            </incomingConnections>
+                                                                            <outgoingConnections id="49">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="50">
                                                                                 <type>1</type>
-                                                                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="42"/>
-                                                                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="56">
-                                                                                  <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
-                                                                                  <id>7</id>
-                                                                                  <name>Guess incorrect</name>
-                                                                                  <incomingConnections id="57">
-                                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="55"/>
-                                                                                  </incomingConnections>
-                                                                                  <outgoingConnections id="58">
-                                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="59">
-                                                                                      <type>1</type>
-                                                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="56"/>
-                                                                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                                  </outgoingConnections>
-                                                                                </to>
+                                                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="47"/>
+                                                                                <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
                                                                               </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                                             </outgoingConnections>
                                                                           </to>
@@ -185,45 +148,45 @@
                                                                 </outgoingConnections>
                                                               </to>
                                                             </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="60">
-                                                              <name>too high</name>
+                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="51">
+                                                              <name>too low</name>
                                                               <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
-Guess( value &gt; randomValue )</constraint>
+Guess( value &lt; randomValue )</constraint>
                                                               <priority>1</priority>
                                                             </org.drools.ruleflow.core.impl.ConstraintImpl>
                                                           </entry>
                                                           <entry>
-                                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="51"/>
-                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="61">
-                                                              <name>too low</name>
+                                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
+                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="52">
+                                                              <name>too high</name>
                                                               <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
-Guess( value &lt; randomValue )</constraint>
+Guess( value &gt; randomValue )</constraint>
                                                               <priority>1</priority>
                                                             </org.drools.ruleflow.core.impl.ConstraintImpl>
                                                           </entry>
                                                           <entry>
-                                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="62">
+                                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="53">
                                                               <type>1</type>
-                                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="30"/>
-                                                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="63">
-                                                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="64">
+                                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="29"/>
+                                                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="54">
+                                                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="55">
                                                                   <consequence>System.out.println( &quot;You guessed correctly&quot; );</consequence>
                                                                 </action>
                                                                 <id>18</id>
                                                                 <name>Guess Correct</name>
-                                                                <incomingConnections id="65">
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="62"/>
+                                                                <incomingConnections id="56">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="53"/>
                                                                 </incomingConnections>
-                                                                <outgoingConnections id="66">
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="67">
+                                                                <outgoingConnections id="57">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="58">
                                                                     <type>1</type>
-                                                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="63"/>
+                                                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="54"/>
                                                                     <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
                                                                   </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                                 </outgoingConnections>
                                                               </to>
                                                             </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="68">
+                                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="59">
                                                               <name>correct</name>
                                                               <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
 Guess( value == randomValue )</constraint>
@@ -233,13 +196,13 @@
                                                         </constraints>
                                                         <id>6</id>
                                                         <name>Guess  correct?</name>
-                                                        <incomingConnections id="69">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="29"/>
+                                                        <incomingConnections id="60">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>
                                                         </incomingConnections>
-                                                        <outgoingConnections id="70">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="62"/>
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="51"/>
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
+                                                        <outgoingConnections id="61">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="53"/>
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
                                                         </outgoingConnections>
                                                       </to>
                                                     </org.drools.ruleflow.core.impl.ConnectionImpl>
@@ -249,636 +212,571 @@
                                             </outgoingConnections>
                                           </to>
                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="71">
+                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="62">
                                           <name>More guesses</name>
                                           <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
 Game(  guessCount &lt; allowed )</constraint>
                                           <priority>1</priority>
                                         </org.drools.ruleflow.core.impl.ConstraintImpl>
                                       </entry>
+                                      <entry>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
+                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="63">
+                                          <name>No More Guesses</name>
+                                          <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
+Game(  guessCount &gt;= allowed )</constraint>
+                                          <priority>1</priority>
+                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                      </entry>
                                     </constraints>
                                     <id>9</id>
                                     <name>More Guesses?</name>
-                                    <incomingConnections id="72">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="59"/>
+                                    <incomingConnections id="64">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="50"/>
                                     </incomingConnections>
-                                    <outgoingConnections id="73">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                                    <outgoingConnections id="65">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
                                       <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
                                     </outgoingConnections>
                                   </from>
                                   <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="11"/>
                                 </org.drools.ruleflow.core.impl.ConnectionImpl>
                               </incomingConnections>
-                              <outgoingConnections id="74">
+                              <outgoingConnections id="66">
                                 <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
                               </outgoingConnections>
                             </from>
                             <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
                           </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="67"/>
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="58"/>
                         </incomingConnections>
-                        <outgoingConnections id="75">
+                        <outgoingConnections id="67">
                           <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
                         </outgoingConnections>
                       </from>
                       <to class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="5"/>
                     </org.drools.ruleflow.core.impl.ConnectionImpl>
                   </incomingConnections>
-                  <outgoingConnections id="76"/>
+                  <outgoingConnections id="68"/>
                 </element>
-                <incomingConnections id="77">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="78" serialization="custom">
+                <incomingConnections id="69">
+                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="70" serialization="custom">
                     <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                       <default>
                         <type>1</type>
-                        <bendpoints id="79"/>
-                        <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="80" serialization="custom">
+                        <bendpoints id="71"/>
+                        <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="72" serialization="custom">
                           <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                             <default>
-                              <constraint id="81">
-                                <x>440</x>
-                                <y>288</y>
+                              <constraint id="73">
+                                <x>436</x>
+                                <y>234</y>
                                 <width>142</width>
                                 <height>40</height>
                               </constraint>
                               <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
-                              <incomingConnections id="82">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="83" serialization="custom">
+                              <incomingConnections id="74">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="75" serialization="custom">
                                   <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                     <default>
                                       <type>1</type>
-                                      <bendpoints id="84"/>
-                                      <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="85" serialization="custom">
+                                      <bendpoints id="76"/>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="77" serialization="custom">
                                         <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                           <default>
-                                            <constraint id="86">
-                                              <x>631</x>
-                                              <y>288</y>
+                                            <constraint id="78">
+                                              <x>627</x>
+                                              <y>234</y>
                                               <width>102</width>
                                               <height>40</height>
                                             </constraint>
                                             <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="11"/>
-                                            <incomingConnections id="87">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="88" serialization="custom">
+                                            <incomingConnections id="79">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="80" serialization="custom">
                                                 <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                   <default>
                                                     <type>1</type>
-                                                    <bendpoints id="89"/>
-                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="90" serialization="custom">
+                                                    <bendpoints id="81"/>
+                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="82" serialization="custom">
                                                       <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                         <default>
-                                                          <constraint id="91">
-                                                            <x>774</x>
-                                                            <y>288</y>
+                                                          <constraint id="83">
+                                                            <x>770</x>
+                                                            <y>234</y>
                                                             <width>93</width>
                                                             <height>40</height>
                                                           </constraint>
                                                           <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                                          <incomingConnections id="92">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="93" serialization="custom">
+                                                          <incomingConnections id="84">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="85" serialization="custom">
                                                               <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                 <default>
                                                                   <type>1</type>
-                                                                  <bendpoints id="94">
-                                                                    <org.eclipse.draw2d.geometry.Point id="95">
-                                                                      <x>819</x>
-                                                                      <y>581</y>
+                                                                  <bendpoints id="86">
+                                                                    <org.eclipse.draw2d.geometry.Point id="87">
+                                                                      <x>816</x>
+                                                                      <y>480</y>
                                                                     </org.eclipse.draw2d.geometry.Point>
                                                                   </bendpoints>
-                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="96" serialization="custom">
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="88" serialization="custom">
                                                                     <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                       <default>
-                                                                        <constraint id="97">
-                                                                          <x>110</x>
-                                                                          <y>561</y>
+                                                                        <constraint id="89">
+                                                                          <x>105</x>
+                                                                          <y>460</y>
                                                                           <width>80</width>
                                                                           <height>40</height>
                                                                         </constraint>
-                                                                        <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="56"/>
-                                                                        <incomingConnections id="98">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="99" serialization="custom">
+                                                                        <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="47"/>
+                                                                        <incomingConnections id="90">
+                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="91" serialization="custom">
                                                                             <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                               <default>
                                                                                 <type>1</type>
-                                                                                <bendpoints id="100"/>
-                                                                                <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="101" serialization="custom">
+                                                                                <bendpoints id="92"/>
+                                                                                <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="93" serialization="custom">
                                                                                   <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                     <default>
-                                                                                      <constraint id="102">
-                                                                                        <x>103</x>
-                                                                                        <y>469</y>
+                                                                                      <constraint id="94">
+                                                                                        <x>98</x>
+                                                                                        <y>368</y>
                                                                                         <width>95</width>
                                                                                         <height>40</height>
                                                                                       </constraint>
-                                                                                      <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="42"/>
-                                                                                      <incomingConnections id="103">
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="104" serialization="custom">
+                                                                                      <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="37"/>
+                                                                                      <incomingConnections id="95">
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="96" serialization="custom">
                                                                                           <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                             <default>
                                                                                               <type>1</type>
-                                                                                              <bendpoints id="105"/>
-                                                                                              <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="106" serialization="custom">
+                                                                                              <bendpoints id="97"/>
+                                                                                              <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="98" serialization="custom">
                                                                                                 <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                   <default>
-                                                                                                    <constraint id="107">
-                                                                                                      <x>11</x>
-                                                                                                      <y>413</y>
+                                                                                                    <constraint id="99">
+                                                                                                      <x>8</x>
+                                                                                                      <y>296</y>
                                                                                                       <width>80</width>
                                                                                                       <height>40</height>
                                                                                                     </constraint>
-                                                                                                    <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="38"/>
-                                                                                                    <incomingConnections id="108">
-                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="109" serialization="custom">
+                                                                                                    <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="40"/>
+                                                                                                    <incomingConnections id="100">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="101" serialization="custom">
                                                                                                         <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                           <default>
                                                                                                             <type>1</type>
-                                                                                                            <bendpoints id="110"/>
-                                                                                                            <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="111" serialization="custom">
+                                                                                                            <bendpoints id="102"/>
+                                                                                                            <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="103" serialization="custom">
                                                                                                               <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                 <default>
-                                                                                                                  <constraint id="112">
-                                                                                                                    <x>12</x>
-                                                                                                                    <y>350</y>
-                                                                                                                    <width>80</width>
+                                                                                                                  <constraint id="104">
+                                                                                                                    <x>95</x>
+                                                                                                                    <y>234</y>
+                                                                                                                    <width>103</width>
                                                                                                                     <height>40</height>
                                                                                                                   </constraint>
-                                                                                                                  <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="33"/>
-                                                                                                                  <incomingConnections id="113">
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="114" serialization="custom">
+                                                                                                                  <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="29"/>
+                                                                                                                  <incomingConnections id="105">
+                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="106" serialization="custom">
                                                                                                                       <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                         <default>
                                                                                                                           <type>1</type>
-                                                                                                                          <bendpoints id="115"/>
-                                                                                                                          <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="116" serialization="custom">
+                                                                                                                          <bendpoints id="107"/>
+                                                                                                                          <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="108" serialization="custom">
                                                                                                                             <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                               <default>
-                                                                                                                                <constraint id="117">
-                                                                                                                                  <x>99</x>
-                                                                                                                                  <y>288</y>
-                                                                                                                                  <width>103</width>
+                                                                                                                                <constraint id="109">
+                                                                                                                                  <x>106</x>
+                                                                                                                                  <y>150</y>
+                                                                                                                                  <width>80</width>
                                                                                                                                   <height>40</height>
                                                                                                                                 </constraint>
-                                                                                                                                <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="30"/>
-                                                                                                                                <incomingConnections id="118">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="119" serialization="custom">
+                                                                                                                                <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>
+                                                                                                                                <incomingConnections id="110">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="111" serialization="custom">
                                                                                                                                     <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                       <default>
                                                                                                                                         <type>1</type>
-                                                                                                                                        <bendpoints id="120"/>
-                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="121" serialization="custom">
+                                                                                                                                        <bendpoints id="112"/>
+                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="113" serialization="custom">
                                                                                                                                           <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                                             <default>
-                                                                                                                                              <constraint id="122">
-                                                                                                                                                <x>110</x>
-                                                                                                                                                <y>204</y>
-                                                                                                                                                <width>80</width>
+                                                                                                                                              <constraint id="114">
+                                                                                                                                                <x>84</x>
+                                                                                                                                                <y>84</y>
+                                                                                                                                                <width>125</width>
                                                                                                                                                 <height>40</height>
                                                                                                                                               </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="26"/>
-                                                                                                                                              <incomingConnections id="123">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="124" serialization="custom">
+                                                                                                                                              <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
+                                                                                                                                              <incomingConnections id="115">
+                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="116" serialization="custom">
                                                                                                                                                   <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                                     <default>
                                                                                                                                                       <type>1</type>
-                                                                                                                                                      <bendpoints id="125"/>
-                                                                                                                                                      <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="126" serialization="custom">
+                                                                                                                                                      <bendpoints id="117"/>
+                                                                                                                                                      <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="118" serialization="custom">
                                                                                                                                                         <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                                                           <default>
-                                                                                                                                                            <constraint id="127">
-                                                                                                                                                              <x>88</x>
-                                                                                                                                                              <y>138</y>
-                                                                                                                                                              <width>125</width>
+                                                                                                                                                            <constraint id="119">
+                                                                                                                                                              <x>106</x>
+                                                                                                                                                              <y>6</y>
+                                                                                                                                                              <width>80</width>
                                                                                                                                                               <height>40</height>
                                                                                                                                                             </constraint>
-                                                                                                                                                            <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="18"/>
-                                                                                                                                                            <incomingConnections id="128">
-                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="129" serialization="custom">
-                                                                                                                                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <type>1</type>
-                                                                                                                                                                    <bendpoints id="130"/>
-                                                                                                                                                                    <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="131" serialization="custom">
-                                                                                                                                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                                                        <default>
-                                                                                                                                                                          <constraint id="132">
-                                                                                                                                                                            <x>110</x>
-                                                                                                                                                                            <y>60</y>
-                                                                                                                                                                            <width>80</width>
-                                                                                                                                                                            <height>40</height>
-                                                                                                                                                                          </constraint>
-                                                                                                                                                                          <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="21"/>
-                                                                                                                                                                          <incomingConnections id="133"/>
-                                                                                                                                                                          <outgoingConnections id="134">
-                                                                                                                                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="129"/>
-                                                                                                                                                                          </outgoingConnections>
-                                                                                                                                                                        </default>
-                                                                                                                                                                      </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                                                    </source>
-                                                                                                                                                                    <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="126"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="20"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="135" serialization="custom">
-                                                                                                                                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <type>1</type>
-                                                                                                                                                                    <bendpoints id="136">
-                                                                                                                                                                      <org.eclipse.draw2d.geometry.Point id="137">
-                                                                                                                                                                        <x>820</x>
-                                                                                                                                                                        <y>155</y>
-                                                                                                                                                                      </org.eclipse.draw2d.geometry.Point>
-                                                                                                                                                                    </bendpoints>
-                                                                                                                                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="90"/>
-                                                                                                                                                                    <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="126"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="17"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                            </incomingConnections>
-                                                                                                                                                            <outgoingConnections id="138">
-                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="124"/>
+                                                                                                                                                            <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="20"/>
+                                                                                                                                                            <incomingConnections id="120"/>
+                                                                                                                                                            <outgoingConnections id="121">
+                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="116"/>
                                                                                                                                                             </outgoingConnections>
-                                                                                                                                                            <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                                                                                           </default>
                                                                                                                                                         </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                                                       </source>
-                                                                                                                                                      <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="121"/>
+                                                                                                                                                      <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="113"/>
                                                                                                                                                     </default>
                                                                                                                                                   </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                                   <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                                     <default>
-                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="25"/>
+                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="19"/>
                                                                                                                                                     </default>
                                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                                 </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="122" serialization="custom">
+                                                                                                                                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                                                    <default>
+                                                                                                                                                      <type>1</type>
+                                                                                                                                                      <bendpoints id="123">
+                                                                                                                                                        <org.eclipse.draw2d.geometry.Point id="124">
+                                                                                                                                                          <x>815</x>
+                                                                                                                                                          <y>102</y>
+                                                                                                                                                        </org.eclipse.draw2d.geometry.Point>
+                                                                                                                                                      </bendpoints>
+                                                                                                                                                      <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="82"/>
+                                                                                                                                                      <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="113"/>
+                                                                                                                                                    </default>
+                                                                                                                                                  </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                                                    <default>
+                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="16"/>
+                                                                                                                                                    </default>
+                                                                                                                                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                               </incomingConnections>
-                                                                                                                                              <outgoingConnections id="139">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="119"/>
+                                                                                                                                              <outgoingConnections id="125">
+                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="111"/>
                                                                                                                                               </outgoingConnections>
                                                                                                                                               <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                                                                             </default>
                                                                                                                                           </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                                                                         </source>
-                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="116"/>
+                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="108"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                     <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                       <default>
-                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="29"/>
+                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="24"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                 </incomingConnections>
-                                                                                                                                <outgoingConnections id="140">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="141" serialization="custom">
+                                                                                                                                <outgoingConnections id="126">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="106"/>
+                                                                                                                                </outgoingConnections>
+                                                                                                                                <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
+                                                                                                                              </default>
+                                                                                                                            </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                                          </source>
+                                                                                                                          <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="103"/>
+                                                                                                                        </default>
+                                                                                                                      </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                        <default>
+                                                                                                                          <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="28"/>
+                                                                                                                        </default>
+                                                                                                                      </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                  </incomingConnections>
+                                                                                                                  <outgoingConnections id="127">
+                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="128" serialization="custom">
+                                                                                                                      <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                        <default>
+                                                                                                                          <type>1</type>
+                                                                                                                          <bendpoints id="129"/>
+                                                                                                                          <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="103"/>
+                                                                                                                          <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="130" serialization="custom">
+                                                                                                                            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                                              <default>
+                                                                                                                                <constraint id="131">
+                                                                                                                                  <x>259</x>
+                                                                                                                                  <y>233</y>
+                                                                                                                                  <width>107</width>
+                                                                                                                                  <height>40</height>
+                                                                                                                                </constraint>
+                                                                                                                                <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="54"/>
+                                                                                                                                <incomingConnections id="132">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="128"/>
+                                                                                                                                </incomingConnections>
+                                                                                                                                <outgoingConnections id="133">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="134" serialization="custom">
                                                                                                                                     <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                       <default>
                                                                                                                                         <type>1</type>
-                                                                                                                                        <bendpoints id="142"/>
-                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="116"/>
-                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="143" serialization="custom">
-                                                                                                                                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                            <default>
-                                                                                                                                              <constraint id="144">
-                                                                                                                                                <x>263</x>
-                                                                                                                                                <y>287</y>
-                                                                                                                                                <width>107</width>
-                                                                                                                                                <height>40</height>
-                                                                                                                                              </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="63"/>
-                                                                                                                                              <incomingConnections id="145">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="141"/>
-                                                                                                                                              </incomingConnections>
-                                                                                                                                              <outgoingConnections id="146">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="147" serialization="custom">
-                                                                                                                                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                    <default>
-                                                                                                                                                      <type>1</type>
-                                                                                                                                                      <bendpoints id="148"/>
-                                                                                                                                                      <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="143"/>
-                                                                                                                                                      <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="80"/>
-                                                                                                                                                    </default>
-                                                                                                                                                  </org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                    <default>
-                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="67"/>
-                                                                                                                                                    </default>
-                                                                                                                                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                              </outgoingConnections>
-                                                                                                                                              <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
-                                                                                                                                            </default>
-                                                                                                                                          </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
-                                                                                                                                            <default>
-                                                                                                                                              <descriptors id="149">
-                                                                                                                                                <org.eclipse.ui.views.properties.TextPropertyDescriptor id="150">
-                                                                                                                                                  <id class="string">Name</id>
-                                                                                                                                                  <display>Name</display>
-                                                                                                                                                  <incompatible>false</incompatible>
-                                                                                                                                                </org.eclipse.ui.views.properties.TextPropertyDescriptor>
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="151">
-                                                                                                                                                  <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="152">
-                                                                                                                                                    <nodes id="153">
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>4</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="45"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>19</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.ActionNodeImpl reference="48"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>8</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.JoinImpl reference="42"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>11</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.JoinImpl reference="8"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>18</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.ActionNodeImpl reference="63"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>3</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="38"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>7</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="56"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>2</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="26"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>13</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="11"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>9</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.SplitImpl reference="14"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>6</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.SplitImpl reference="30"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>1</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.StartNodeImpl reference="21"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>20</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.ActionNodeImpl reference="33"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>10</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.JoinImpl reference="18"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                      <entry>
-                                                                                                                                                        <long>5</long>
-                                                                                                                                                        <org.drools.ruleflow.core.impl.EndNodeImpl reference="5"/>
-                                                                                                                                                      </entry>
-                                                                                                                                                    </nodes>
-                                                                                                                                                    <variables id="154"/>
-                                                                                                                                                    <lastNodeId>20</lastNodeId>
-                                                                                                                                                    <imports id="155">
-                                                                                                                                                      <string>org.drools.examples.NumberGuessExample.Game</string>
-                                                                                                                                                      <string>org.drools.examples.NumberGuessExample.GameRules</string>
-                                                                                                                                                      <string>org.drools.examples.NumberGuessExample.RandomNumber</string>
-                                                                                                                                                    </imports>
-                                                                                                                                                    <id>Number Guess</id>
-                                                                                                                                                    <name>Number Guess</name>
-                                                                                                                                                    <type>RuleFlow</type>
-                                                                                                                                                  </process>
-                                                                                                                                                  <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="63"/>
-                                                                                                                                                  <id class="string">Action</id>
-                                                                                                                                                  <display>Action</display>
-                                                                                                                                                  <incompatible>false</incompatible>
-                                                                                                                                                </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
-                                                                                                                                              </descriptors>
-                                                                                                                                            </default>
-                                                                                                                                          </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
-                                                                                                                                        </target>
+                                                                                                                                        <bendpoints id="135"/>
+                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="130"/>
+                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="72"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                     <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                       <default>
-                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="62"/>
+                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="58"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="156" serialization="custom">
+                                                                                                                                </outgoingConnections>
+                                                                                                                                <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
+                                                                                                                              </default>
+                                                                                                                            </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                                            <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                                              <default>
+                                                                                                                                <descriptors id="136">
+                                                                                                                                  <org.eclipse.ui.views.properties.TextPropertyDescriptor id="137">
+                                                                                                                                    <id class="string">Name</id>
+                                                                                                                                    <display>Name</display>
+                                                                                                                                    <incompatible>false</incompatible>
+                                                                                                                                  </org.eclipse.ui.views.properties.TextPropertyDescriptor>
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="138">
+                                                                                                                                    <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="139">
+                                                                                                                                      <nodes id="140">
+                                                                                                                                        <entry>
+                                                                                                                                          <long>19</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="32"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>8</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.JoinImpl reference="37"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>11</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.JoinImpl reference="8"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>18</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="54"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>7</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="47"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>2</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="25"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>13</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="11"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>9</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.SplitImpl reference="14"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>6</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.SplitImpl reference="29"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>1</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.StartNodeImpl reference="20"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>20</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="40"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>10</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.JoinImpl reference="17"/>
+                                                                                                                                        </entry>
+                                                                                                                                        <entry>
+                                                                                                                                          <long>5</long>
+                                                                                                                                          <org.drools.ruleflow.core.impl.EndNodeImpl reference="5"/>
+                                                                                                                                        </entry>
+                                                                                                                                      </nodes>
+                                                                                                                                      <variables id="141"/>
+                                                                                                                                      <lastNodeId>22</lastNodeId>
+                                                                                                                                      <imports id="142">
+                                                                                                                                        <string>org.drools.examples.NumberGuessExample.Game</string>
+                                                                                                                                        <string>org.drools.examples.NumberGuessExample.GameRules</string>
+                                                                                                                                        <string>org.drools.examples.NumberGuessExample.RandomNumber</string>
+                                                                                                                                      </imports>
+                                                                                                                                      <id>Number Guess</id>
+                                                                                                                                      <name>Number Guess</name>
+                                                                                                                                      <type>RuleFlow</type>
+                                                                                                                                    </process>
+                                                                                                                                    <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="54"/>
+                                                                                                                                    <id class="string">Action</id>
+                                                                                                                                    <display>Action</display>
+                                                                                                                                    <incompatible>false</incompatible>
+                                                                                                                                  </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
+                                                                                                                                </descriptors>
+                                                                                                                              </default>
+                                                                                                                            </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                                          </target>
+                                                                                                                        </default>
+                                                                                                                      </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                        <default>
+                                                                                                                          <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="53"/>
+                                                                                                                        </default>
+                                                                                                                      </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="143" serialization="custom">
+                                                                                                                      <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                                        <default>
+                                                                                                                          <type>1</type>
+                                                                                                                          <bendpoints id="144"/>
+                                                                                                                          <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="103"/>
+                                                                                                                          <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="145" serialization="custom">
+                                                                                                                            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                                              <default>
+                                                                                                                                <constraint id="146">
+                                                                                                                                  <x>210</x>
+                                                                                                                                  <y>295</y>
+                                                                                                                                  <width>80</width>
+                                                                                                                                  <height>40</height>
+                                                                                                                                </constraint>
+                                                                                                                                <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="32"/>
+                                                                                                                                <incomingConnections id="147">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="143"/>
+                                                                                                                                </incomingConnections>
+                                                                                                                                <outgoingConnections id="148">
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="149" serialization="custom">
                                                                                                                                     <org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                       <default>
                                                                                                                                         <type>1</type>
-                                                                                                                                        <bendpoints id="157"/>
-                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="116"/>
-                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="158" serialization="custom">
-                                                                                                                                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                            <default>
-                                                                                                                                              <constraint id="159">
-                                                                                                                                                <x>214</x>
-                                                                                                                                                <y>349</y>
-                                                                                                                                                <width>80</width>
-                                                                                                                                                <height>40</height>
-                                                                                                                                              </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="48"/>
-                                                                                                                                              <incomingConnections id="160">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="156"/>
-                                                                                                                                              </incomingConnections>
-                                                                                                                                              <outgoingConnections id="161">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="162" serialization="custom">
-                                                                                                                                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                    <default>
-                                                                                                                                                      <type>1</type>
-                                                                                                                                                      <bendpoints id="163"/>
-                                                                                                                                                      <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="158"/>
-                                                                                                                                                      <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="164" serialization="custom">
-                                                                                                                                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                                          <default>
-                                                                                                                                                            <constraint id="165">
-                                                                                                                                                              <x>213</x>
-                                                                                                                                                              <y>413</y>
-                                                                                                                                                              <width>80</width>
-                                                                                                                                                              <height>40</height>
-                                                                                                                                                            </constraint>
-                                                                                                                                                            <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="45"/>
-                                                                                                                                                            <incomingConnections id="166">
-                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="162"/>
-                                                                                                                                                            </incomingConnections>
-                                                                                                                                                            <outgoingConnections id="167">
-                                                                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="168" serialization="custom">
-                                                                                                                                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <type>1</type>
-                                                                                                                                                                    <bendpoints id="169"/>
-                                                                                                                                                                    <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="164"/>
-                                                                                                                                                                    <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="101"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                                  <default>
-                                                                                                                                                                    <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="44"/>
-                                                                                                                                                                  </default>
-                                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                            </outgoingConnections>
-                                                                                                                                                            <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
-                                                                                                                                                          </default>
-                                                                                                                                                        </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                                      </target>
-                                                                                                                                                    </default>
-                                                                                                                                                  </org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                    <default>
-                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="47"/>
-                                                                                                                                                    </default>
-                                                                                                                                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                              </outgoingConnections>
-                                                                                                                                              <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
-                                                                                                                                            </default>
-                                                                                                                                          </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
-                                                                                                                                            <default>
-                                                                                                                                              <descriptors id="170">
-                                                                                                                                                <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="150"/>
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="171">
-                                                                                                                                                  <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="152"/>
-                                                                                                                                                  <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="48"/>
-                                                                                                                                                  <id class="string">Action</id>
-                                                                                                                                                  <display>Action</display>
-                                                                                                                                                  <incompatible>false</incompatible>
-                                                                                                                                                </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
-                                                                                                                                              </descriptors>
-                                                                                                                                            </default>
-                                                                                                                                          </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
-                                                                                                                                        </target>
+                                                                                                                                        <bendpoints id="150"/>
+                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="145"/>
+                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="93"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                                     <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                       <default>
-                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="51"/>
+                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="36"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="114"/>
                                                                                                                                 </outgoingConnections>
                                                                                                                                 <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                                                               </default>
                                                                                                                             </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                            <org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
-                                                                                                                              <default/>
-                                                                                                                            </org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
-                                                                                                                          </source>
-                                                                                                                          <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="111"/>
+                                                                                                                            <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                                              <default>
+                                                                                                                                <descriptors id="151">
+                                                                                                                                  <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="137"/>
+                                                                                                                                  <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="152">
+                                                                                                                                    <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
+                                                                                                                                    <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="32"/>
+                                                                                                                                    <id class="string">Action</id>
+                                                                                                                                    <display>Action</display>
+                                                                                                                                    <incompatible>false</incompatible>
+                                                                                                                                  </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
+                                                                                                                                </descriptors>
+                                                                                                                              </default>
+                                                                                                                            </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                                          </target>
                                                                                                                         </default>
                                                                                                                       </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                                       <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                         <default>
-                                                                                                                          <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="32"/>
+                                                                                                                          <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="31"/>
                                                                                                                         </default>
                                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                  </incomingConnections>
-                                                                                                                  <outgoingConnections id="172">
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="109"/>
+                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="101"/>
                                                                                                                   </outgoingConnections>
                                                                                                                   <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                                                 </default>
                                                                                                               </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                              <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
-                                                                                                                <default>
-                                                                                                                  <descriptors id="173">
-                                                                                                                    <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="150"/>
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="174">
-                                                                                                                      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="152"/>
-                                                                                                                      <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="33"/>
-                                                                                                                      <id class="string">Action</id>
-                                                                                                                      <display>Action</display>
-                                                                                                                      <incompatible>false</incompatible>
-                                                                                                                    </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
-                                                                                                                  </descriptors>
-                                                                                                                </default>
-                                                                                                              </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                              <org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
+                                                                                                                <default/>
+                                                                                                              </org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
                                                                                                             </source>
-                                                                                                            <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="106"/>
+                                                                                                            <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="98"/>
                                                                                                           </default>
                                                                                                         </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                                         <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                           <default>
-                                                                                                            <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="37"/>
+                                                                                                            <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="43"/>
                                                                                                           </default>
                                                                                                         </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                     </incomingConnections>
-                                                                                                    <outgoingConnections id="175">
-                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="104"/>
+                                                                                                    <outgoingConnections id="153">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="96"/>
                                                                                                     </outgoingConnections>
                                                                                                     <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                                   </default>
                                                                                                 </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                                                                                  <default>
+                                                                                                    <descriptors id="154">
+                                                                                                      <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="137"/>
+                                                                                                      <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="155">
+                                                                                                        <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
+                                                                                                        <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="40"/>
+                                                                                                        <id class="string">Action</id>
+                                                                                                        <display>Action</display>
+                                                                                                        <incompatible>false</incompatible>
+                                                                                                      </org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor>
+                                                                                                    </descriptors>
+                                                                                                  </default>
+                                                                                                </org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
                                                                                               </source>
-                                                                                              <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="101"/>
+                                                                                              <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="93"/>
                                                                                             </default>
                                                                                           </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                                           <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                             <default>
-                                                                                              <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="41"/>
+                                                                                              <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="39"/>
                                                                                             </default>
                                                                                           </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                         </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="168"/>
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="149"/>
                                                                                       </incomingConnections>
-                                                                                      <outgoingConnections id="176">
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="99"/>
+                                                                                      <outgoingConnections id="156">
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="91"/>
                                                                                       </outgoingConnections>
                                                                                       <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                                     </default>
                                                                                   </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                                 </source>
-                                                                                <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="96"/>
+                                                                                <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="88"/>
                                                                               </default>
                                                                             </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                                             <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                               <default>
-                                                                                <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="55"/>
+                                                                                <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="46"/>
                                                                               </default>
                                                                             </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                           </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                         </incomingConnections>
-                                                                        <outgoingConnections id="177">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="93"/>
+                                                                        <outgoingConnections id="157">
+                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="85"/>
                                                                         </outgoingConnections>
                                                                         <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                                       </default>
                                                                     </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                                                   </source>
-                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="90"/>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="82"/>
                                                                 </default>
                                                               </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                               <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                 <default>
-                                                                  <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="59"/>
+                                                                  <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="50"/>
                                                                 </default>
                                                               </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                             </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                           </incomingConnections>
-                                                          <outgoingConnections id="178">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="135"/>
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="88"/>
+                                                          <outgoingConnections id="158">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="122"/>
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="80"/>
                                                           </outgoingConnections>
                                                           <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                                         </default>
@@ -887,7 +785,7 @@
                                                         <default/>
                                                       </org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
                                                     </source>
-                                                    <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="85"/>
+                                                    <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="77"/>
                                                   </default>
                                                 </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                                 <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -897,14 +795,14 @@
                                                 </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                               </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                             </incomingConnections>
-                                            <outgoingConnections id="179">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="83"/>
+                                            <outgoingConnections id="159">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="75"/>
                                             </outgoingConnections>
                                             <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                                           </default>
                                         </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
                                       </source>
-                                      <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="80"/>
+                                      <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="72"/>
                                     </default>
                                   </org.drools.eclipse.flow.common.editor.core.ElementConnection>
                                   <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -913,10 +811,10 @@
                                     </default>
                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                 </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="147"/>
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="134"/>
                               </incomingConnections>
-                              <outgoingConnections id="180">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="78"/>
+                              <outgoingConnections id="160">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="70"/>
                               </outgoingConnections>
                               <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
                             </default>
@@ -932,7 +830,7 @@
                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                 </incomingConnections>
-                <outgoingConnections id="181"/>
+                <outgoingConnections id="161"/>
                 <parent class="org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper" reference="1"/>
               </default>
             </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
@@ -940,62 +838,54 @@
         </entry>
         <entry>
           <string>9-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="90"/>
+          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="82"/>
         </entry>
         <entry>
           <string>2-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="121"/>
+          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="108"/>
         </entry>
         <entry>
           <string>18-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="143"/>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="130"/>
         </entry>
         <entry>
           <string>13-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="85"/>
+          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="77"/>
         </entry>
         <entry>
-          <string>4-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="164"/>
-        </entry>
-        <entry>
           <string>11-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="80"/>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="72"/>
         </entry>
         <entry>
           <string>19-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="158"/>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="145"/>
         </entry>
         <entry>
           <string>7-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="96"/>
+          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="88"/>
         </entry>
         <entry>
-          <string>3-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="106"/>
-        </entry>
-        <entry>
           <string>6-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="116"/>
+          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="103"/>
         </entry>
         <entry>
           <string>10-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="126"/>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="113"/>
         </entry>
         <entry>
           <string>1-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="131"/>
+          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="118"/>
         </entry>
         <entry>
-          <string>20-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="111"/>
+          <string>8-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="93"/>
         </entry>
         <entry>
-          <string>8-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="101"/>
+          <string>20-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="98"/>
         </entry>
       </elements>
-      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="152"/>
+      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
       <routerLayout>2</routerLayout>
     </default>
   </org.drools.eclipse.flow.common.editor.core.ProcessWrapper>

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rfm
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rfm	2007-09-19 02:48:50 UTC (rev 15217)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rfm	2007-09-19 02:51:17 UTC (rev 15218)
@@ -1,221 +1,206 @@
 <org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
   <nodes id="2">
     <entry>
-      <long>4</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl id="3">
-        <ruleFlowGroup>Too Low</ruleFlowGroup>
-        <id>4</id>
+      <long>19</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl id="3">
+        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="4">
+          <consequence>System.out.println( &quot;Your guess was too low&quot; );</consequence>
+        </action>
+        <id>19</id>
         <name>Too Low</name>
-        <incomingConnections id="4">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
+        <incomingConnections id="5">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="6">
             <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="6">
-              <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="7">
-                <consequence>System.out.println( &quot;Your guess was too low&quot; );</consequence>
-              </action>
-              <id>19</id>
-              <name>Too Low</name>
-              <incomingConnections id="8">
-                <org.drools.ruleflow.core.impl.ConnectionImpl id="9">
-                  <type>1</type>
-                  <from class="org.drools.ruleflow.core.impl.SplitImpl" id="10">
-                    <type>2</type>
-                    <constraints id="11">
-                      <entry>
-                        <org.drools.ruleflow.core.impl.ConnectionImpl id="12">
+            <from class="org.drools.ruleflow.core.impl.SplitImpl" id="7">
+              <type>2</type>
+              <constraints id="8">
+                <entry>
+                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="6"/>
+                  <org.drools.ruleflow.core.impl.ConstraintImpl id="9">
+                    <name>too low</name>
+                    <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
+Guess( value &lt; randomValue )</constraint>
+                    <priority>1</priority>
+                  </org.drools.ruleflow.core.impl.ConstraintImpl>
+                </entry>
+                <entry>
+                  <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
+                    <type>1</type>
+                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
+                    <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="11">
+                      <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="12">
+                        <consequence>System.out.println( &quot;Your guess was too high&quot; );</consequence>
+                      </action>
+                      <id>20</id>
+                      <name>Too High</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="10"/>
-                          <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="13">
-                            <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="14">
-                              <consequence>System.out.println( &quot;Your guess was too high&quot; );</consequence>
-                            </action>
-                            <id>20</id>
-                            <name>Too High</name>
-                            <incomingConnections id="15">
-                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
+                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="11"/>
+                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="16">
+                            <type>2</type>
+                            <id>8</id>
+                            <name>incorrect guess</name>
+                            <incomingConnections id="17">
+                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
+                              <org.drools.ruleflow.core.impl.ConnectionImpl id="18">
+                                <type>1</type>
+                                <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="3"/>
+                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="16"/>
+                              </org.drools.ruleflow.core.impl.ConnectionImpl>
                             </incomingConnections>
-                            <outgoingConnections id="16">
-                              <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
+                            <outgoingConnections id="19">
+                              <org.drools.ruleflow.core.impl.ConnectionImpl id="20">
                                 <type>1</type>
-                                <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="13"/>
-                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="18">
-                                  <ruleFlowGroup>Too High</ruleFlowGroup>
-                                  <id>3</id>
-                                  <name>Too High</name>
-                                  <incomingConnections id="19">
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="16"/>
+                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="21">
+                                  <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
+                                  <id>7</id>
+                                  <name>Guess incorrect</name>
+                                  <incomingConnections id="22">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
                                   </incomingConnections>
-                                  <outgoingConnections id="20">
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="21">
+                                  <outgoingConnections id="23">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
                                       <type>1</type>
-                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="18"/>
-                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" id="22">
+                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="21"/>
+                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" id="25">
                                         <type>2</type>
-                                        <id>8</id>
-                                        <name>incorrect guess</name>
-                                        <incomingConnections id="23">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="21"/>
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
-                                            <type>1</type>
-                                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
-                                            <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="22"/>
-                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                        </incomingConnections>
-                                        <outgoingConnections id="25">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="26">
-                                            <type>1</type>
-                                            <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="22"/>
-                                            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="27">
-                                              <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
-                                              <id>7</id>
-                                              <name>Guess incorrect</name>
-                                              <incomingConnections id="28">
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="26"/>
-                                              </incomingConnections>
-                                              <outgoingConnections id="29">
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
-                                                  <type>1</type>
-                                                  <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="27"/>
-                                                  <to class="org.drools.ruleflow.core.impl.SplitImpl" id="31">
-                                                    <type>2</type>
-                                                    <constraints id="32">
-                                                      <entry>
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="33">
+                                        <constraints id="26">
+                                          <entry>
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="27">
+                                              <type>1</type>
+                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="25"/>
+                                              <to class="org.drools.ruleflow.core.impl.JoinImpl" id="28">
+                                                <type>2</type>
+                                                <id>10</id>
+                                                <name>More guesses Join</name>
+                                                <incomingConnections id="29">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
+                                                    <type>1</type>
+                                                    <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="31">
+                                                      <id>1</id>
+                                                      <name>Start</name>
+                                                      <incomingConnections id="32"/>
+                                                      <outgoingConnections id="33">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
+                                                      </outgoingConnections>
+                                                    </from>
+                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="28"/>
+                                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
+                                                </incomingConnections>
+                                                <outgoingConnections id="34">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="35">
+                                                    <type>1</type>
+                                                    <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="28"/>
+                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="36">
+                                                      <ruleFlowGroup>Guess</ruleFlowGroup>
+                                                      <id>2</id>
+                                                      <name>Guess</name>
+                                                      <incomingConnections id="37">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="35"/>
+                                                      </incomingConnections>
+                                                      <outgoingConnections id="38">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="39">
                                                           <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="31"/>
-                                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="34">
-                                                            <ruleFlowGroup>No more Guesses</ruleFlowGroup>
-                                                            <id>13</id>
-                                                            <name>No more Guesses</name>
-                                                            <incomingConnections id="35">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="33"/>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="36">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
-                                                                <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="34"/>
-                                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" id="38">
-                                                                  <type>2</type>
-                                                                  <id>11</id>
-                                                                  <name>No more guesses Join</name>
-                                                                  <incomingConnections id="39">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="40">
-                                                                      <type>1</type>
-                                                                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="41">
-                                                                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="42">
-                                                                          <consequence>System.out.println( &quot;You guessed correctly&quot; );</consequence>
-                                                                        </action>
-                                                                        <id>18</id>
-                                                                        <name>Guess Correct</name>
-                                                                        <incomingConnections id="43">
-                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="44">
-                                                                            <type>1</type>
-                                                                            <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="10"/>
-                                                                            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="41"/>
-                                                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="45">
-                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
-                                                                        </outgoingConnections>
-                                                                      </from>
-                                                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="38"/>
-                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                  </incomingConnections>
-                                                                  <outgoingConnections id="46">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="47">
-                                                                      <type>1</type>
-                                                                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="38"/>
-                                                                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="48">
-                                                                        <id>5</id>
-                                                                        <name>End</name>
-                                                                        <incomingConnections id="49">
-                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="47"/>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="50"/>
-                                                                      </to>
-                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                  </outgoingConnections>
-                                                                </to>
-                                                              </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                            </outgoingConnections>
-                                                          </to>
+                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="36"/>
+                                                          <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
                                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="51">
-                                                          <name>No More Guesses</name>
-                                                          <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
-Game(  guessCount &gt;= allowed )</constraint>
-                                                          <priority>1</priority>
-                                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                      </entry>
-                                                      <entry>
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="52">
+                                                      </outgoingConnections>
+                                                    </to>
+                                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                </outgoingConnections>
+                                              </to>
+                                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="40">
+                                              <name>More guesses</name>
+                                              <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
+Game(  guessCount &lt; allowed )</constraint>
+                                              <priority>1</priority>
+                                            </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                          </entry>
+                                          <entry>
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="41">
+                                              <type>1</type>
+                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="25"/>
+                                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="42">
+                                                <ruleFlowGroup>No more Guesses</ruleFlowGroup>
+                                                <id>13</id>
+                                                <name>No more Guesses</name>
+                                                <incomingConnections id="43">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="41"/>
+                                                </incomingConnections>
+                                                <outgoingConnections id="44">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="45">
+                                                    <type>1</type>
+                                                    <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="42"/>
+                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="46">
+                                                      <type>2</type>
+                                                      <id>11</id>
+                                                      <name>No more guesses Join</name>
+                                                      <incomingConnections id="47">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="45"/>
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="48">
                                                           <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="31"/>
-                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="53">
-                                                            <type>2</type>
-                                                            <id>10</id>
-                                                            <name>More guesses Join</name>
-                                                            <incomingConnections id="54">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="55">
+                                                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="49">
+                                                            <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="50">
+                                                              <consequence>System.out.println( &quot;You guessed correctly&quot; );</consequence>
+                                                            </action>
+                                                            <id>18</id>
+                                                            <name>Guess Correct</name>
+                                                            <incomingConnections id="51">
+                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="52">
                                                                 <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="56">
-                                                                  <id>1</id>
-                                                                  <name>Start</name>
-                                                                  <incomingConnections id="57"/>
-                                                                  <outgoingConnections id="58">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="55"/>
-                                                                  </outgoingConnections>
-                                                                </from>
-                                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="53"/>
+                                                                <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
+                                                                <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="49"/>
                                                               </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="52"/>
                                                             </incomingConnections>
-                                                            <outgoingConnections id="59">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="60">
-                                                                <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="53"/>
-                                                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="61">
-                                                                  <ruleFlowGroup>Guess</ruleFlowGroup>
-                                                                  <id>2</id>
-                                                                  <name>Guess</name>
-                                                                  <incomingConnections id="62">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="60"/>
-                                                                  </incomingConnections>
-                                                                  <outgoingConnections id="63">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="64">
-                                                                      <type>1</type>
-                                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="61"/>
-                                                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="10"/>
-                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                  </outgoingConnections>
-                                                                </to>
-                                                              </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                            <outgoingConnections id="53">
+                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="48"/>
                                                             </outgoingConnections>
+                                                          </from>
+                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="46"/>
+                                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                      </incomingConnections>
+                                                      <outgoingConnections id="54">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="55">
+                                                          <type>1</type>
+                                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="46"/>
+                                                          <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="56">
+                                                            <id>5</id>
+                                                            <name>End</name>
+                                                            <incomingConnections id="57">
+                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="55"/>
+                                                            </incomingConnections>
+                                                            <outgoingConnections id="58"/>
                                                           </to>
                                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="65">
-                                                          <name>More guesses</name>
-                                                          <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
-Game(  guessCount &lt; allowed )</constraint>
-                                                          <priority>1</priority>
-                                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                      </entry>
-                                                    </constraints>
-                                                    <id>9</id>
-                                                    <name>More Guesses?</name>
-                                                    <incomingConnections id="66">
-                                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
-                                                    </incomingConnections>
-                                                    <outgoingConnections id="67">
-                                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="52"/>
-                                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="33"/>
-                                                    </outgoingConnections>
-                                                  </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.ConstraintImpl id="59">
+                                              <name>No More Guesses</name>
+                                              <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
+Game(  guessCount &gt;= allowed )</constraint>
+                                              <priority>1</priority>
+                                            </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                          </entry>
+                                        </constraints>
+                                        <id>9</id>
+                                        <name>More Guesses?</name>
+                                        <incomingConnections id="60">
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
+                                        </incomingConnections>
+                                        <outgoingConnections id="61">
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="41"/>
                                         </outgoingConnections>
                                       </to>
                                     </org.drools.ruleflow.core.impl.ConnectionImpl>
@@ -225,118 +210,97 @@
                             </outgoingConnections>
                           </to>
                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                        <org.drools.ruleflow.core.impl.ConstraintImpl id="68">
-                          <name>too high</name>
-                          <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
+                      </outgoingConnections>
+                    </to>
+                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                  <org.drools.ruleflow.core.impl.ConstraintImpl id="62">
+                    <name>too high</name>
+                    <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
 Guess( value &gt; randomValue )</constraint>
-                          <priority>1</priority>
-                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                      </entry>
-                      <entry>
-                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="9"/>
-                        <org.drools.ruleflow.core.impl.ConstraintImpl id="69">
-                          <name>too low</name>
-                          <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
-Guess( value &lt; randomValue )</constraint>
-                          <priority>1</priority>
-                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                      </entry>
-                      <entry>
-                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="44"/>
-                        <org.drools.ruleflow.core.impl.ConstraintImpl id="70">
-                          <name>correct</name>
-                          <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
+                    <priority>1</priority>
+                  </org.drools.ruleflow.core.impl.ConstraintImpl>
+                </entry>
+                <entry>
+                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="52"/>
+                  <org.drools.ruleflow.core.impl.ConstraintImpl id="63">
+                    <name>correct</name>
+                    <constraint>RandomNumber( randomValue : value ) &amp;&amp;&#x0D;
 Guess( value == randomValue )</constraint>
-                          <priority>1</priority>
-                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                      </entry>
-                    </constraints>
-                    <id>6</id>
-                    <name>Guess  correct?</name>
-                    <incomingConnections id="71">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="64"/>
-                    </incomingConnections>
-                    <outgoingConnections id="72">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="44"/>
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="9"/>
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
-                    </outgoingConnections>
-                  </from>
-                  <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="6"/>
-                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                    <priority>1</priority>
+                  </org.drools.ruleflow.core.impl.ConstraintImpl>
+                </entry>
+              </constraints>
+              <id>6</id>
+              <name>Guess  correct?</name>
+              <incomingConnections id="64">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="39"/>
               </incomingConnections>
-              <outgoingConnections id="73">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
+              <outgoingConnections id="65">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="52"/>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="6"/>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
               </outgoingConnections>
             </from>
-            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
+            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="3"/>
           </org.drools.ruleflow.core.impl.ConnectionImpl>
         </incomingConnections>
-        <outgoingConnections id="74">
-          <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
+        <outgoingConnections id="66">
+          <org.drools.ruleflow.core.impl.ConnectionImpl reference="18"/>
         </outgoingConnections>
-      </org.drools.ruleflow.core.impl.RuleSetNodeImpl>
+      </org.drools.ruleflow.core.impl.ActionNodeImpl>
     </entry>
     <entry>
-      <long>19</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="6"/>
-    </entry>
-    <entry>
       <long>8</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="22"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="16"/>
     </entry>
     <entry>
       <long>11</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="38"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="46"/>
     </entry>
     <entry>
       <long>18</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="41"/>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="49"/>
     </entry>
     <entry>
-      <long>3</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="18"/>
-    </entry>
-    <entry>
       <long>7</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="27"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="21"/>
     </entry>
     <entry>
       <long>2</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="61"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="36"/>
     </entry>
     <entry>
       <long>13</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="34"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="42"/>
     </entry>
     <entry>
       <long>9</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="31"/>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="25"/>
     </entry>
     <entry>
       <long>6</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="10"/>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="7"/>
     </entry>
     <entry>
       <long>1</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl reference="56"/>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="31"/>
     </entry>
     <entry>
       <long>20</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="13"/>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="11"/>
     </entry>
     <entry>
       <long>10</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="53"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="28"/>
     </entry>
     <entry>
       <long>5</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="48"/>
+      <org.drools.ruleflow.core.impl.EndNodeImpl reference="56"/>
     </entry>
   </nodes>
-  <variables id="75"/>
-  <lastNodeId>20</lastNodeId>
-  <imports id="76">
+  <variables id="67"/>
+  <lastNodeId>22</lastNodeId>
+  <imports id="68">
     <string>org.drools.examples.NumberGuessExample.Game</string>
     <string>org.drools.examples.NumberGuessExample.GameRules</string>
     <string>org.drools.examples.NumberGuessExample.RandomNumber</string>




More information about the jboss-svn-commits mailing list