[jboss-svn-commits] JBL Code SVN: r14276 - labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Aug 15 21:15:30 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-08-15 21:15:30 -0400 (Wed, 15 Aug 2007)
New Revision: 14276

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.rfm
Log:
JBRULES-1039 Add Number Guess example with Rule Flow
-spelling fix

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-08-16 00:55:49 UTC (rev 14275)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rf	2007-08-16 01:15:30 UTC (rev 14276)
@@ -37,85 +37,94 @@
                                     <type>2</type>
                                     <constraints id="15">
                                       <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="16">
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
+                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="16">
+                                          <name>Guess correct</name>
+                                          <constraint>RandomNumber( randomValue : value )&#x0D;
+Guess( value == randomValue )</constraint>
+                                          <priority>1</priority>
+                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                      </entry>
+                                      <entry>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
                                           <type>1</type>
                                           <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="17">
-                                            <ruleFlowGroup>To High</ruleFlowGroup>
+                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="18">
+                                            <ruleFlowGroup>Too High</ruleFlowGroup>
                                             <id>3</id>
-                                            <name>To High</name>
-                                            <incomingConnections id="18">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
+                                            <name>Too High</name>
+                                            <incomingConnections id="19">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
                                             </incomingConnections>
-                                            <outgoingConnections id="19">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="20">
+                                            <outgoingConnections id="20">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="21">
                                                 <type>1</type>
-                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="17"/>
-                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" id="21">
+                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="18"/>
+                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" id="22">
                                                   <type>2</type>
                                                   <id>8</id>
                                                   <name>incorrect guess</name>
-                                                  <incomingConnections id="22">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="23">
+                                                  <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" id="24">
-                                                        <ruleFlowGroup>To Low</ruleFlowGroup>
+                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="25">
+                                                        <ruleFlowGroup>Too Low</ruleFlowGroup>
                                                         <id>4</id>
-                                                        <name>To Low</name>
-                                                        <incomingConnections id="25">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="26">
+                                                        <name>Too Low</name>
+                                                        <incomingConnections id="26">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="27">
                                                             <type>1</type>
                                                             <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                                            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="24"/>
+                                                            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>
                                                           </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                         </incomingConnections>
-                                                        <outgoingConnections id="27">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="23"/>
+                                                        <outgoingConnections id="28">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
                                                         </outgoingConnections>
                                                       </from>
-                                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="21"/>
+                                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="22"/>
                                                     </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                   </incomingConnections>
-                                                  <outgoingConnections id="28">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="29">
+                                                  <outgoingConnections id="29">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
                                                       <type>1</type>
-                                                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="21"/>
-                                                      <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="30">
+                                                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="22"/>
+                                                      <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="31">
                                                         <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
                                                         <id>7</id>
                                                         <name>Guess incorrect</name>
-                                                        <incomingConnections id="31">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="29"/>
+                                                        <incomingConnections id="32">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
                                                         </incomingConnections>
-                                                        <outgoingConnections id="32">
-                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="33">
+                                                        <outgoingConnections id="33">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
                                                             <type>1</type>
-                                                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="30"/>
-                                                            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="34">
+                                                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="31"/>
+                                                            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="35">
                                                               <type>2</type>
-                                                              <constraints id="35">
+                                                              <constraints id="36">
                                                                 <entry>
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="36">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
                                                                     <type>1</type>
-                                                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="34"/>
-                                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="37">
+                                                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="35"/>
+                                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="38">
                                                                       <ruleFlowGroup>No more Guesses</ruleFlowGroup>
                                                                       <id>13</id>
                                                                       <name>No more Guesses</name>
-                                                                      <incomingConnections id="38">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="36"/>
+                                                                      <incomingConnections id="39">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
                                                                       </incomingConnections>
-                                                                      <outgoingConnections id="39">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="40">
+                                                                      <outgoingConnections id="40">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="41">
                                                                           <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="37"/>
+                                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="38"/>
                                                                           <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="41">
+                                                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="42">
                                                                     <name>No More Guesses</name>
                                                                     <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
 Game(  guessCount &gt;= allowed )</constraint>
@@ -123,43 +132,43 @@
                                                                   </org.drools.ruleflow.core.impl.ConstraintImpl>
                                                                 </entry>
                                                                 <entry>
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="42">
+                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="43">
                                                                     <type>1</type>
-                                                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="34"/>
-                                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="43">
+                                                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="35"/>
+                                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="44">
                                                                       <type>2</type>
                                                                       <id>10</id>
                                                                       <name>More guesses Join</name>
-                                                                      <incomingConnections id="44">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="45">
+                                                                      <incomingConnections id="45">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="46">
                                                                           <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="46">
+                                                                          <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="47">
                                                                             <id>1</id>
                                                                             <name>Start</name>
-                                                                            <incomingConnections id="47"/>
-                                                                            <outgoingConnections id="48">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="45"/>
+                                                                            <incomingConnections id="48"/>
+                                                                            <outgoingConnections id="49">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="46"/>
                                                                             </outgoingConnections>
                                                                           </from>
-                                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="43"/>
+                                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="44"/>
                                                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="42"/>
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
                                                                       </incomingConnections>
-                                                                      <outgoingConnections id="49">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="50">
+                                                                      <outgoingConnections id="50">
+                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="51">
                                                                           <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="43"/>
-                                                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="51">
+                                                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="44"/>
+                                                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="52">
                                                                             <ruleFlowGroup>Guess</ruleFlowGroup>
                                                                             <id>2</id>
                                                                             <name>Guess</name>
-                                                                            <incomingConnections id="52">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="50"/>
+                                                                            <incomingConnections id="53">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="51"/>
                                                                             </incomingConnections>
-                                                                            <outgoingConnections id="53">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="54">
+                                                                            <outgoingConnections id="54">
+                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="55">
                                                                                 <type>1</type>
-                                                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="51"/>
+                                                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="52"/>
                                                                                 <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
                                                                               </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                                             </outgoingConnections>
@@ -168,7 +177,7 @@
                                                                       </outgoingConnections>
                                                                     </to>
                                                                   </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="55">
+                                                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="56">
                                                                     <name>More guesses</name>
                                                                     <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
 Game(  guessCount &lt; allowed )</constraint>
@@ -178,12 +187,12 @@
                                                               </constraints>
                                                               <id>9</id>
                                                               <name>More Guesses?</name>
-                                                              <incomingConnections id="56">
-                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="33"/>
+                                                              <incomingConnections id="57">
+                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
                                                               </incomingConnections>
-                                                              <outgoingConnections id="57">
-                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="42"/>
-                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="36"/>
+                                                              <outgoingConnections id="58">
+                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
+                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
                                                               </outgoingConnections>
                                                             </to>
                                                           </org.drools.ruleflow.core.impl.ConnectionImpl>
@@ -196,7 +205,7 @@
                                             </outgoingConnections>
                                           </to>
                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="58">
+                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="59">
                                           <name>Guess to high</name>
                                           <constraint>RandomNumber( randomValue : value )&#x0D;
 Guess( value &gt; randomValue )</constraint>
@@ -204,16 +213,7 @@
                                         </org.drools.ruleflow.core.impl.ConstraintImpl>
                                       </entry>
                                       <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="59">
-                                          <name>Guess correct</name>
-                                          <constraint>RandomNumber( randomValue : value )&#x0D;
-Guess( value == randomValue )</constraint>
-                                          <priority>1</priority>
-                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                      </entry>
-                                      <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="26"/>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
                                         <org.drools.ruleflow.core.impl.ConstraintImpl id="60">
                                           <name>Guess to low</name>
                                           <constraint>RandomNumber( randomValue : value )&#x0D;
@@ -225,11 +225,11 @@
                                     <id>6</id>
                                     <name>Guess  correct?</name>
                                     <incomingConnections id="61">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="54"/>
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="55"/>
                                     </incomingConnections>
                                     <outgoingConnections id="62">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="26"/>
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
                                       <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
                                     </outgoingConnections>
                                   </from>
@@ -242,7 +242,7 @@
                             </from>
                             <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
                           </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="41"/>
                         </incomingConnections>
                         <outgoingConnections id="64">
                           <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
@@ -316,7 +316,7 @@
                                                                           <width>80</width>
                                                                           <height>40</height>
                                                                         </constraint>
-                                                                        <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="51"/>
+                                                                        <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="52"/>
                                                                         <incomingConnections id="86">
                                                                           <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="87" serialization="custom">
                                                                             <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -332,7 +332,7 @@
                                                                                         <width>125</width>
                                                                                         <height>40</height>
                                                                                       </constraint>
-                                                                                      <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="43"/>
+                                                                                      <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="44"/>
                                                                                       <incomingConnections id="91">
                                                                                         <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="92" serialization="custom">
                                                                                           <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -348,7 +348,7 @@
                                                                                                       <width>80</width>
                                                                                                       <height>40</height>
                                                                                                     </constraint>
-                                                                                                    <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="46"/>
+                                                                                                    <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="47"/>
                                                                                                     <incomingConnections id="96"/>
                                                                                                     <outgoingConnections id="97">
                                                                                                       <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="92"/>
@@ -361,7 +361,7 @@
                                                                                           </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="45"/>
+                                                                                              <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>
@@ -384,7 +384,7 @@
                                                                                                       <width>93</width>
                                                                                                       <height>40</height>
                                                                                                     </constraint>
-                                                                                                    <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="34"/>
+                                                                                                    <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="35"/>
                                                                                                     <incomingConnections id="103">
                                                                                                       <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="104" serialization="custom">
                                                                                                         <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -405,7 +405,7 @@
                                                                                                                     <width>80</width>
                                                                                                                     <height>40</height>
                                                                                                                   </constraint>
-                                                                                                                  <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="30"/>
+                                                                                                                  <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="31"/>
                                                                                                                   <incomingConnections id="109">
                                                                                                                     <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="110" serialization="custom">
                                                                                                                       <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -421,7 +421,7 @@
                                                                                                                                   <width>95</width>
                                                                                                                                   <height>40</height>
                                                                                                                                 </constraint>
-                                                                                                                                <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="21"/>
+                                                                                                                                <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="22"/>
                                                                                                                                 <incomingConnections id="114">
                                                                                                                                   <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="115" serialization="custom">
                                                                                                                                     <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -437,7 +437,7 @@
                                                                                                                                                 <width>80</width>
                                                                                                                                                 <height>40</height>
                                                                                                                                               </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="17"/>
+                                                                                                                                              <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="18"/>
                                                                                                                                               <incomingConnections id="119">
                                                                                                                                                 <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="120" serialization="custom">
                                                                                                                                                   <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -450,7 +450,7 @@
                                                                                                                                                   </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"/>
+                                                                                                                                                      <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>
@@ -467,7 +467,7 @@
                                                                                                                                     </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"/>
+                                                                                                                                        <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="21"/>
                                                                                                                                       </default>
                                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -485,7 +485,7 @@
                                                                                                                                                 <width>80</width>
                                                                                                                                                 <height>40</height>
                                                                                                                                               </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="24"/>
+                                                                                                                                              <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>
                                                                                                                                               <incomingConnections id="127">
                                                                                                                                                 <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="128" serialization="custom">
                                                                                                                                                   <org.drools.eclipse.flow.common.editor.core.ElementConnection>
@@ -498,7 +498,7 @@
                                                                                                                                                   </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="26"/>
+                                                                                                                                                      <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="27"/>
                                                                                                                                                     </default>
                                                                                                                                                   </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                                                 </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -515,7 +515,7 @@
                                                                                                                                     </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="23"/>
+                                                                                                                                        <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>
@@ -532,7 +532,7 @@
                                                                                                                       </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="30"/>
                                                                                                                         </default>
                                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -549,7 +549,7 @@
                                                                                                         </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="33"/>
+                                                                                                            <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="34"/>
                                                                                                           </default>
                                                                                                         </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -571,7 +571,7 @@
                                                                                                                     <width>102</width>
                                                                                                                     <height>40</height>
                                                                                                                   </constraint>
-                                                                                                                  <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="37"/>
+                                                                                                                  <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="38"/>
                                                                                                                   <incomingConnections id="138">
                                                                                                                     <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="134"/>
                                                                                                                   </incomingConnections>
@@ -587,7 +587,7 @@
                                                                                                                       </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="40"/>
+                                                                                                                          <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="41"/>
                                                                                                                         </default>
                                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                                     </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -600,7 +600,7 @@
                                                                                                         </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="36"/>
+                                                                                                            <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="37"/>
                                                                                                           </default>
                                                                                                         </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                                                       </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -617,7 +617,7 @@
                                                                                           </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="42"/>
+                                                                                              <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>
@@ -634,7 +634,7 @@
                                                                             </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="50"/>
+                                                                                <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="51"/>
                                                                               </default>
                                                                             </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                                           </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -651,7 +651,7 @@
                                                               </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="54"/>
+                                                                  <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="55"/>
                                                                 </default>
                                                               </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
                                                             </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
@@ -772,11 +772,11 @@
         <nodes id="149">
           <entry>
             <long>4</long>
-            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="24"/>
+            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="25"/>
           </entry>
           <entry>
             <long>8</long>
-            <org.drools.ruleflow.core.impl.JoinImpl reference="21"/>
+            <org.drools.ruleflow.core.impl.JoinImpl reference="22"/>
           </entry>
           <entry>
             <long>11</long>
@@ -784,11 +784,11 @@
           </entry>
           <entry>
             <long>3</long>
-            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="17"/>
+            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="18"/>
           </entry>
           <entry>
             <long>7</long>
-            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="30"/>
+            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="31"/>
           </entry>
           <entry>
             <long>12</long>
@@ -796,15 +796,15 @@
           </entry>
           <entry>
             <long>2</long>
-            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="51"/>
+            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="52"/>
           </entry>
           <entry>
             <long>13</long>
-            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="37"/>
+            <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="38"/>
           </entry>
           <entry>
             <long>9</long>
-            <org.drools.ruleflow.core.impl.SplitImpl reference="34"/>
+            <org.drools.ruleflow.core.impl.SplitImpl reference="35"/>
           </entry>
           <entry>
             <long>6</long>
@@ -812,11 +812,11 @@
           </entry>
           <entry>
             <long>1</long>
-            <org.drools.ruleflow.core.impl.StartNodeImpl reference="46"/>
+            <org.drools.ruleflow.core.impl.StartNodeImpl reference="47"/>
           </entry>
           <entry>
             <long>10</long>
-            <org.drools.ruleflow.core.impl.JoinImpl reference="43"/>
+            <org.drools.ruleflow.core.impl.JoinImpl reference="44"/>
           </entry>
           <entry>
             <long>5</long>

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-08-16 00:55:49 UTC (rev 14275)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/NumberGuess.rfm	2007-08-16 01:15:30 UTC (rev 14276)
@@ -3,9 +3,9 @@
     <entry>
       <long>4</long>
       <org.drools.ruleflow.core.impl.RuleSetNodeImpl id="3">
-        <ruleFlowGroup>To Low</ruleFlowGroup>
+        <ruleFlowGroup>Too Low</ruleFlowGroup>
         <id>4</id>
-        <name>To Low</name>
+        <name>Too Low</name>
         <incomingConnections id="4">
           <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
             <type>1</type>
@@ -17,9 +17,9 @@
                     <type>1</type>
                     <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="6"/>
                     <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="9">
-                      <ruleFlowGroup>To High</ruleFlowGroup>
-                      <id>3</id>
-                      <name>To High</name>
+                      <ruleFlowGroup>Guess correct</ruleFlowGroup>
+                      <id>12</id>
+                      <name>Guess correct</name>
                       <incomingConnections id="10">
                         <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
                       </incomingConnections>
@@ -29,95 +29,25 @@
                           <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="9"/>
                           <to class="org.drools.ruleflow.core.impl.JoinImpl" id="13">
                             <type>2</type>
-                            <id>8</id>
-                            <name>incorrect guess</name>
+                            <id>11</id>
+                            <name>No more guesses Join</name>
                             <incomingConnections id="14">
                               <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
                               <org.drools.ruleflow.core.impl.ConnectionImpl id="15">
                                 <type>1</type>
-                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
-                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="13"/>
-                              </org.drools.ruleflow.core.impl.ConnectionImpl>
-                            </incomingConnections>
-                            <outgoingConnections id="16">
-                              <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
-                                <type>1</type>
-                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="13"/>
-                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="18">
-                                  <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
-                                  <id>7</id>
-                                  <name>Guess incorrect</name>
-                                  <incomingConnections id="19">
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
-                                  </incomingConnections>
-                                  <outgoingConnections id="20">
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="21">
+                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="16">
+                                  <ruleFlowGroup>No more Guesses</ruleFlowGroup>
+                                  <id>13</id>
+                                  <name>No more Guesses</name>
+                                  <incomingConnections id="17">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="18">
                                       <type>1</type>
-                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="18"/>
-                                      <to class="org.drools.ruleflow.core.impl.SplitImpl" id="22">
+                                      <from class="org.drools.ruleflow.core.impl.SplitImpl" id="19">
                                         <type>2</type>
-                                        <constraints id="23">
+                                        <constraints id="20">
                                           <entry>
-                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
-                                              <type>1</type>
-                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="22"/>
-                                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="25">
-                                                <ruleFlowGroup>No more Guesses</ruleFlowGroup>
-                                                <id>13</id>
-                                                <name>No more Guesses</name>
-                                                <incomingConnections id="26">
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
-                                                </incomingConnections>
-                                                <outgoingConnections id="27">
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="28">
-                                                    <type>1</type>
-                                                    <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>
-                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="29">
-                                                      <type>2</type>
-                                                      <id>11</id>
-                                                      <name>No more guesses Join</name>
-                                                      <incomingConnections id="30">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="31">
-                                                          <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="32">
-                                                            <ruleFlowGroup>Guess correct</ruleFlowGroup>
-                                                            <id>12</id>
-                                                            <name>Guess correct</name>
-                                                            <incomingConnections id="33">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
-                                                                <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="6"/>
-                                                                <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="32"/>
-                                                              </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="35">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>
-                                                            </outgoingConnections>
-                                                          </from>
-                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="29"/>
-                                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>
-                                                      </incomingConnections>
-                                                      <outgoingConnections id="36">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
-                                                          <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="29"/>
-                                                          <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="38">
-                                                            <id>5</id>
-                                                            <name>End</name>
-                                                            <incomingConnections id="39">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="40"/>
-                                                          </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="41">
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="18"/>
+                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="21">
                                               <name>No More Guesses</name>
                                               <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
 Game(  guessCount &gt;= allowed )</constraint>
@@ -125,43 +55,43 @@
                                             </org.drools.ruleflow.core.impl.ConstraintImpl>
                                           </entry>
                                           <entry>
-                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="42">
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="22">
                                               <type>1</type>
-                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="22"/>
-                                              <to class="org.drools.ruleflow.core.impl.JoinImpl" id="43">
+                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="19"/>
+                                              <to class="org.drools.ruleflow.core.impl.JoinImpl" id="23">
                                                 <type>2</type>
                                                 <id>10</id>
                                                 <name>More guesses Join</name>
-                                                <incomingConnections id="44">
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="45">
+                                                <incomingConnections id="24">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
                                                     <type>1</type>
-                                                    <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="46">
+                                                    <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="26">
                                                       <id>1</id>
                                                       <name>Start</name>
-                                                      <incomingConnections id="47"/>
-                                                      <outgoingConnections id="48">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="45"/>
+                                                      <incomingConnections id="27"/>
+                                                      <outgoingConnections id="28">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
                                                       </outgoingConnections>
                                                     </from>
-                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="43"/>
+                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
                                                   </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="42"/>
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="22"/>
                                                 </incomingConnections>
-                                                <outgoingConnections id="49">
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="50">
+                                                <outgoingConnections id="29">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
                                                     <type>1</type>
-                                                    <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="43"/>
-                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="51">
+                                                    <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
+                                                    <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="31">
                                                       <ruleFlowGroup>Guess</ruleFlowGroup>
                                                       <id>2</id>
                                                       <name>Guess</name>
-                                                      <incomingConnections id="52">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="50"/>
+                                                      <incomingConnections id="32">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
                                                       </incomingConnections>
-                                                      <outgoingConnections id="53">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="54">
+                                                      <outgoingConnections id="33">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
                                                           <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="51"/>
+                                                          <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="31"/>
                                                           <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="6"/>
                                                         </org.drools.ruleflow.core.impl.ConnectionImpl>
                                                       </outgoingConnections>
@@ -170,7 +100,7 @@
                                                 </outgoingConnections>
                                               </to>
                                             </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="55">
+                                            <org.drools.ruleflow.core.impl.ConstraintImpl id="35">
                                               <name>More guesses</name>
                                               <constraint>GameRules( allowed : allowedGuesses  )&#x0D;
 Game(  guessCount &lt; allowed )</constraint>
@@ -180,16 +110,86 @@
                                         </constraints>
                                         <id>9</id>
                                         <name>More Guesses?</name>
-                                        <incomingConnections id="56">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="21"/>
+                                        <incomingConnections id="36">
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
+                                            <type>1</type>
+                                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="38">
+                                              <ruleFlowGroup>Guess incorrect</ruleFlowGroup>
+                                              <id>7</id>
+                                              <name>Guess incorrect</name>
+                                              <incomingConnections id="39">
+                                                <org.drools.ruleflow.core.impl.ConnectionImpl id="40">
+                                                  <type>1</type>
+                                                  <from class="org.drools.ruleflow.core.impl.JoinImpl" id="41">
+                                                    <type>2</type>
+                                                    <id>8</id>
+                                                    <name>incorrect guess</name>
+                                                    <incomingConnections id="42">
+                                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="43">
+                                                        <type>1</type>
+                                                        <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="44">
+                                                          <ruleFlowGroup>Too High</ruleFlowGroup>
+                                                          <id>3</id>
+                                                          <name>Too High</name>
+                                                          <incomingConnections id="45">
+                                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="46">
+                                                              <type>1</type>
+                                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="6"/>
+                                                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="44"/>
+                                                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                          </incomingConnections>
+                                                          <outgoingConnections id="47">
+                                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
+                                                          </outgoingConnections>
+                                                        </from>
+                                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="41"/>
+                                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="48">
+                                                        <type>1</type>
+                                                        <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
+                                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="41"/>
+                                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                    </incomingConnections>
+                                                    <outgoingConnections id="49">
+                                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
+                                                    </outgoingConnections>
+                                                  </from>
+                                                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="38"/>
+                                                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                              </incomingConnections>
+                                              <outgoingConnections id="50">
+                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
+                                              </outgoingConnections>
+                                            </from>
+                                            <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="19"/>
+                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
                                         </incomingConnections>
-                                        <outgoingConnections id="57">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="42"/>
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
+                                        <outgoingConnections id="51">
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="22"/>
+                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="18"/>
                                         </outgoingConnections>
-                                      </to>
+                                      </from>
+                                      <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="16"/>
                                     </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                  </incomingConnections>
+                                  <outgoingConnections id="52">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
                                   </outgoingConnections>
+                                </from>
+                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="13"/>
+                              </org.drools.ruleflow.core.impl.ConnectionImpl>
+                            </incomingConnections>
+                            <outgoingConnections id="53">
+                              <org.drools.ruleflow.core.impl.ConnectionImpl id="54">
+                                <type>1</type>
+                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="13"/>
+                                <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="55">
+                                  <id>5</id>
+                                  <name>End</name>
+                                  <incomingConnections id="56">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="54"/>
+                                  </incomingConnections>
+                                  <outgoingConnections id="57"/>
                                 </to>
                               </org.drools.ruleflow.core.impl.ConnectionImpl>
                             </outgoingConnections>
@@ -199,18 +199,18 @@
                     </to>
                   </org.drools.ruleflow.core.impl.ConnectionImpl>
                   <org.drools.ruleflow.core.impl.ConstraintImpl id="58">
-                    <name>Guess to high</name>
+                    <name>Guess correct</name>
                     <constraint>RandomNumber( randomValue : value )&#x0D;
-Guess( value &gt; randomValue )</constraint>
+Guess( value == randomValue )</constraint>
                     <priority>1</priority>
                   </org.drools.ruleflow.core.impl.ConstraintImpl>
                 </entry>
                 <entry>
-                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
+                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="46"/>
                   <org.drools.ruleflow.core.impl.ConstraintImpl id="59">
-                    <name>Guess correct</name>
+                    <name>Guess to high</name>
                     <constraint>RandomNumber( randomValue : value )&#x0D;
-Guess( value == randomValue )</constraint>
+Guess( value &gt; randomValue )</constraint>
                     <priority>1</priority>
                   </org.drools.ruleflow.core.impl.ConstraintImpl>
                 </entry>
@@ -227,53 +227,53 @@
               <id>6</id>
               <name>Guess  correct?</name>
               <incomingConnections id="61">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="54"/>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
               </incomingConnections>
               <outgoingConnections id="62">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="46"/>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
                 <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
               </outgoingConnections>
             </from>
             <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="3"/>
           </org.drools.ruleflow.core.impl.ConnectionImpl>
         </incomingConnections>
         <outgoingConnections id="63">
-          <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
+          <org.drools.ruleflow.core.impl.ConnectionImpl reference="48"/>
         </outgoingConnections>
       </org.drools.ruleflow.core.impl.RuleSetNodeImpl>
     </entry>
     <entry>
       <long>8</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="13"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="41"/>
     </entry>
     <entry>
       <long>11</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="29"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="13"/>
     </entry>
     <entry>
       <long>3</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="9"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="44"/>
     </entry>
     <entry>
       <long>7</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="18"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="38"/>
     </entry>
     <entry>
       <long>12</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="32"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="9"/>
     </entry>
     <entry>
       <long>2</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="51"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="31"/>
     </entry>
     <entry>
       <long>13</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="25"/>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="16"/>
     </entry>
     <entry>
       <long>9</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="22"/>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="19"/>
     </entry>
     <entry>
       <long>6</long>
@@ -281,15 +281,15 @@
     </entry>
     <entry>
       <long>1</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl reference="46"/>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="26"/>
     </entry>
     <entry>
       <long>10</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="43"/>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="23"/>
     </entry>
     <entry>
       <long>5</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="38"/>
+      <org.drools.ruleflow.core.impl.EndNodeImpl reference="55"/>
     </entry>
   </nodes>
   <variables id="64"/>




More information about the jboss-svn-commits mailing list