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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri May 16 20:36:19 EDT 2008


Author: KrisVerlaenen
Date: 2008-05-16 20:36:19 -0400 (Fri, 16 May 2008)
New Revision: 19975

Modified:
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rf
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rfm
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/GenericRules.drl
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rf
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rfm
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rf
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rfm
Log:
JBRULES-1608: Update examples to use new ruleflow ePDL format
 - updated cdss example

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rf
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rf	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rf	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,917 +1,60 @@
-<org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper id="1" serialization="custom">
-  <org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-    <default>
-      <elements id="2">
-        <entry>
-          <string>12-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper id="3" serialization="custom">
-            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-              <default>
-                <constraint id="4">
-                  <x>214</x>
-                  <y>167</y>
-                  <width>121</width>
-                  <height>40</height>
-                </constraint>
-                <element class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" id="5">
-                  <constraint>Diagnose(  )</constraint>
-                  <id>12</id>
-                  <name>Wait for Diagnose</name>
-                  <incomingConnections id="6">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl id="7">
-                      <type>1</type>
-                      <from class="org.drools.ruleflow.core.impl.JoinImpl" id="8">
-                        <type>2</type>
-                        <id>15</id>
-                        <name></name>
-                        <incomingConnections id="9">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
-                            <type>1</type>
-                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="11">
-                              <ruleFlowGroup>AdditionalExaminations</ruleFlowGroup>
-                              <id>17</id>
-                              <name>Additional Examinations</name>
-                              <incomingConnections id="12">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl id="13">
-                                  <type>1</type>
-                                  <from class="org.drools.ruleflow.core.impl.SplitImpl" id="14">
-                                    <type>2</type>
-                                    <constraints id="15">
-                                      <entry>
-                                        <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.ActionNodeImpl" id="17">
-                                            <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="18">
-                                              <consequence>System.out.println(&quot;Notifying GP of patient of the diagnose.&quot;);</consequence>
-                                            </action>
-                                            <id>28</id>
-                                            <name>Notify GP</name>
-                                            <incomingConnections id="19">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                                            </incomingConnections>
-                                            <outgoingConnections id="20">
-                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="21">
-                                                <type>1</type>
-                                                <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="17"/>
-                                                <to class="org.drools.ruleflow.core.impl.SplitImpl" id="22">
-                                                  <type>2</type>
-                                                  <constraints id="23">
-                                                    <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.SubFlowNodeImpl" id="25">
-                                                          <processId>org.drools.examples.cdss.TreatmentX</processId>
-                                                          <id>25</id>
-                                                          <name>Treatment X</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.SubFlowNodeImpl" reference="25"/>
-                                                              <to class="org.drools.ruleflow.core.impl.JoinImpl" id="29">
-                                                                <type>2</type>
-                                                                <id>23</id>
-                                                                <name></name>
-                                                                <incomingConnections id="30">
-                                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="31">
-                                                                    <type>1</type>
-                                                                    <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="32">
-                                                                      <processId>org.drools.examples.cdss.TreatmentY</processId>
-                                                                      <id>26</id>
-                                                                      <name>Treatment Y</name>
-                                                                      <incomingConnections id="33">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
-                                                                          <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="22"/>
-                                                                          <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" 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.ActionNodeImpl" id="38">
-                                                                      <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="39">
-                                                                        <consequence>System.out.println(&quot;Scheduling follow-up of patient.&quot;);</consequence>
-                                                                      </action>
-                                                                      <id>29</id>
-                                                                      <name>Schedule Follow-up</name>
-                                                                      <incomingConnections id="40">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                                      </incomingConnections>
-                                                                      <outgoingConnections id="41">
-                                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="42">
-                                                                          <type>1</type>
-                                                                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="38"/>
-                                                                          <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="43">
-                                                                            <id>8</id>
-                                                                            <name>End</name>
-                                                                            <incomingConnections id="44">
-                                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="42"/>
-                                                                            </incomingConnections>
-                                                                            <outgoingConnections id="45"/>
-                                                                          </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="46">
-                                                        <name>Diagnosed type 1</name>
-                                                        <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE1 )</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.ConstraintImpl id="47">
-                                                        <name>Diagnosed type 2</name>
-                                                        <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE2 )</constraint>
-                                                        <priority>2</priority>
-                                                      </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                    </entry>
-                                                    <entry>
-                                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="48">
-                                                        <type>1</type>
-                                                        <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="22"/>
-                                                        <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="49">
-                                                          <id>27</id>
-                                                          <name>End</name>
-                                                          <incomingConnections id="50">
-                                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="48"/>
-                                                          </incomingConnections>
-                                                          <outgoingConnections id="51"/>
-                                                        </to>
-                                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                      <org.drools.ruleflow.core.impl.ConstraintImpl id="52">
-                                                        <name>Else</name>
-                                                        <constraint>eval(true)</constraint>
-                                                        <priority>3</priority>
-                                                      </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                    </entry>
-                                                  </constraints>
-                                                  <id>19</id>
-                                                  <name>Select Treatment</name>
-                                                  <incomingConnections id="53">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="21"/>
-                                                  </incomingConnections>
-                                                  <outgoingConnections id="54">
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
-                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="48"/>
-                                                  </outgoingConnections>
-                                                </to>
-                                              </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                            </outgoingConnections>
-                                          </to>
-                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="55">
-                                          <name>Diagnose complete</name>
-                                          <constraint>eval(true)</constraint>
-                                          <priority>2</priority>
-                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                      </entry>
-                                      <entry>
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="56">
-                                          <name>Diagnose inconclusive</name>
-                                          <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
-                                          <priority>1</priority>
-                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                      </entry>
-                                    </constraints>
-                                    <id>16</id>
-                                    <name>Diagnose complete?</name>
-                                    <incomingConnections id="57">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="58">
-                                        <type>1</type>
-                                        <from class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="5"/>
-                                        <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                    </incomingConnections>
-                                    <outgoingConnections id="59">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                                    </outgoingConnections>
-                                  </from>
-                                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="11"/>
-                                </org.drools.ruleflow.core.impl.ConnectionImpl>
-                              </incomingConnections>
-                              <outgoingConnections id="60">
-                                <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 id="61">
-                            <type>1</type>
-                            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="62">
-                              <ruleFlowGroup>Examinations</ruleFlowGroup>
-                              <id>11</id>
-                              <name>Examinations</name>
-                              <incomingConnections id="63">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl id="64">
-                                  <type>1</type>
-                                  <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="65">
-                                    <id>7</id>
-                                    <name>Start</name>
-                                    <incomingConnections id="66"/>
-                                    <outgoingConnections id="67">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="64"/>
-                                    </outgoingConnections>
-                                  </from>
-                                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="62"/>
-                                </org.drools.ruleflow.core.impl.ConnectionImpl>
-                              </incomingConnections>
-                              <outgoingConnections id="68">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="61"/>
-                              </outgoingConnections>
-                            </from>
-                            <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
-                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                        </incomingConnections>
-                        <outgoingConnections id="69">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
-                        </outgoingConnections>
-                      </from>
-                      <to class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="5"/>
-                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                  </incomingConnections>
-                  <outgoingConnections id="70">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="58"/>
-                  </outgoingConnections>
-                </element>
-                <incomingConnections id="71">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="72" serialization="custom">
-                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                      <default>
-                        <type>1</type>
-                        <bendpoints id="73"/>
-                        <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="74" serialization="custom">
-                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                            <default>
-                              <constraint id="75">
-                                <x>269</x>
-                                <y>128</y>
-                                <width>11</width>
-                                <height>14</height>
-                              </constraint>
-                              <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="8"/>
-                              <incomingConnections id="76">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="77" serialization="custom">
-                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                    <default>
-                                      <type>1</type>
-                                      <bendpoints id="78">
-                                        <org.eclipse.draw2d.geometry.Point id="79">
-                                          <x>433</x>
-                                          <y>134</y>
-                                        </org.eclipse.draw2d.geometry.Point>
-                                      </bendpoints>
-                                      <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="80" serialization="custom">
-                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                          <default>
-                                            <constraint id="81">
-                                              <x>360</x>
-                                              <y>165</y>
-                                              <width>147</width>
-                                              <height>40</height>
-                                            </constraint>
-                                            <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="11"/>
-                                            <incomingConnections id="82">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="83" serialization="custom">
-                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                  <default>
-                                                    <type>1</type>
-                                                    <bendpoints id="84">
-                                                      <org.eclipse.draw2d.geometry.Point id="85">
-                                                        <x>433</x>
-                                                        <y>240</y>
-                                                      </org.eclipse.draw2d.geometry.Point>
-                                                    </bendpoints>
-                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="86" serialization="custom">
-                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                        <default>
-                                                          <constraint id="87">
-                                                            <x>214</x>
-                                                            <y>225</y>
-                                                            <width>124</width>
-                                                            <height>32</height>
-                                                          </constraint>
-                                                          <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="14"/>
-                                                          <incomingConnections id="88">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="89" serialization="custom">
-                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                <default>
-                                                                  <type>1</type>
-                                                                  <bendpoints id="90"/>
-                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper" reference="3"/>
-                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="86"/>
-                                                                </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="58"/>
-                                                                </default>
-                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                          </incomingConnections>
-                                                          <outgoingConnections id="91">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="83"/>
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="92" serialization="custom">
-                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                <default>
-                                                                  <type>1</type>
-                                                                  <bendpoints id="93"/>
-                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="86"/>
-                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="94" serialization="custom">
-                                                                    <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                      <default>
-                                                                        <constraint id="95">
-                                                                          <x>237</x>
-                                                                          <y>293</y>
-                                                                          <width>77</width>
-                                                                          <height>40</height>
-                                                                        </constraint>
-                                                                        <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="17"/>
-                                                                        <incomingConnections id="96">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="92"/>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="97">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="98" serialization="custom">
-                                                                            <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                              <default>
-                                                                                <type>1</type>
-                                                                                <bendpoints id="99"/>
-                                                                                <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="94"/>
-                                                                                <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="100" serialization="custom">
-                                                                                  <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                    <default>
-                                                                                      <constraint id="101">
-                                                                                        <x>218</x>
-                                                                                        <y>364</y>
-                                                                                        <width>115</width>
-                                                                                        <height>40</height>
-                                                                                      </constraint>
-                                                                                      <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="22"/>
-                                                                                      <incomingConnections id="102">
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="98"/>
-                                                                                      </incomingConnections>
-                                                                                      <outgoingConnections id="103">
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="104" 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.SplitWrapper" reference="100"/>
-                                                                                              <target class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" id="106" serialization="custom">
-                                                                                                <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                  <default>
-                                                                                                    <constraint id="107">
-                                                                                                      <x>131</x>
-                                                                                                      <y>437</y>
-                                                                                                      <width>89</width>
-                                                                                                      <height>40</height>
-                                                                                                    </constraint>
-                                                                                                    <element class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="25"/>
-                                                                                                    <incomingConnections id="108">
-                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="104"/>
-                                                                                                    </incomingConnections>
-                                                                                                    <outgoingConnections id="109">
-                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="110" serialization="custom">
-                                                                                                        <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                          <default>
-                                                                                                            <type>1</type>
-                                                                                                            <bendpoints id="111"/>
-                                                                                                            <source class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" reference="106"/>
-                                                                                                            <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="112" serialization="custom">
-                                                                                                              <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                <default>
-                                                                                                                  <constraint id="113">
-                                                                                                                    <x>218</x>
-                                                                                                                    <y>501</y>
-                                                                                                                    <width>13</width>
-                                                                                                                    <height>14</height>
-                                                                                                                  </constraint>
-                                                                                                                  <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="29"/>
-                                                                                                                  <incomingConnections id="114">
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="115" serialization="custom">
-                                                                                                                      <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                        <default>
-                                                                                                                          <type>1</type>
-                                                                                                                          <bendpoints id="116"/>
-                                                                                                                          <source class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" id="117" serialization="custom">
-                                                                                                                            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                              <default>
-                                                                                                                                <constraint id="118">
-                                                                                                                                  <x>230</x>
-                                                                                                                                  <y>437</y>
-                                                                                                                                  <width>90</width>
-                                                                                                                                  <height>40</height>
-                                                                                                                                </constraint>
-                                                                                                                                <element class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="32"/>
-                                                                                                                                <incomingConnections id="119">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="120" serialization="custom">
-                                                                                                                                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                      <default>
-                                                                                                                                        <type>1</type>
-                                                                                                                                        <bendpoints id="121"/>
-                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="100"/>
-                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" reference="117"/>
-                                                                                                                                      </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="34"/>
-                                                                                                                                      </default>
-                                                                                                                                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                                </incomingConnections>
-                                                                                                                                <outgoingConnections id="122">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="115"/>
-                                                                                                                                </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="112"/>
-                                                                                                                        </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="31"/>
-                                                                                                                        </default>
-                                                                                                                      </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="110"/>
-                                                                                                                  </incomingConnections>
-                                                                                                                  <outgoingConnections id="123">
-                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="124" 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" reference="112"/>
-                                                                                                                          <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="126" serialization="custom">
-                                                                                                                            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                              <default>
-                                                                                                                                <constraint id="127">
-                                                                                                                                  <x>158</x>
-                                                                                                                                  <y>533</y>
-                                                                                                                                  <width>134</width>
-                                                                                                                                  <height>40</height>
-                                                                                                                                </constraint>
-                                                                                                                                <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="38"/>
-                                                                                                                                <incomingConnections id="128">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="124"/>
-                                                                                                                                </incomingConnections>
-                                                                                                                                <outgoingConnections id="129">
-                                                                                                                                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="130" serialization="custom">
-                                                                                                                                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                                                                                      <default>
-                                                                                                                                        <type>1</type>
-                                                                                                                                        <bendpoints id="131"/>
-                                                                                                                                        <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="126"/>
-                                                                                                                                        <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="132" serialization="custom">
-                                                                                                                                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                                                            <default>
-                                                                                                                                              <constraint id="133">
-                                                                                                                                                <x>185</x>
-                                                                                                                                                <y>595</y>
-                                                                                                                                                <width>80</width>
-                                                                                                                                                <height>40</height>
-                                                                                                                                              </constraint>
-                                                                                                                                              <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="43"/>
-                                                                                                                                              <incomingConnections id="134">
-                                                                                                                                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="130"/>
-                                                                                                                                              </incomingConnections>
-                                                                                                                                              <outgoingConnections id="135"/>
-                                                                                                                                              <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="42"/>
-                                                                                                                                      </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="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>7</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.StartNodeImpl reference="65"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>8</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.EndNodeImpl reference="43"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>11</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="62"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>12</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.MilestoneNodeImpl reference="5"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>15</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.JoinImpl reference="8"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>17</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="11"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>16</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.SplitImpl reference="14"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>19</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.SplitImpl reference="22"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>23</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.JoinImpl reference="29"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>25</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="25"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>27</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.EndNodeImpl reference="49"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>26</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="32"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>29</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="38"/>
-                                                                                                                                        </entry>
-                                                                                                                                        <entry>
-                                                                                                                                          <long>28</long>
-                                                                                                                                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="17"/>
-                                                                                                                                        </entry>
-                                                                                                                                      </nodes>
-                                                                                                                                      <variables id="141"/>
-                                                                                                                                      <lastNodeId>31</lastNodeId>
-                                                                                                                                      <imports id="142">
-                                                                                                                                        <string>org.drools.examples.cdss.data.Diagnose</string>
-                                                                                                                                        <string>org.drools.examples.cdss.Terminology</string>
-                                                                                                                                      </imports>
-                                                                                                                                      <id>org.drools.examples.cdss.ClinicalPathwayX</id>
-                                                                                                                                      <name>ClinicalPathwayX</name>
-                                                                                                                                      <version>1.0</version>
-                                                                                                                                      <type>RuleFlow</type>
-                                                                                                                                      <packageName>com.sample</packageName>
-                                                                                                                                    </process>
-                                                                                                                                    <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="38"/>
-                                                                                                                                    <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="37"/>
-                                                                                                                        </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="28"/>
-                                                                                                          </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="24"/>
-                                                                                            </default>
-                                                                                          </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                        </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="120"/>
-                                                                                        <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="100"/>
-                                                                                              <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="145" serialization="custom">
-                                                                                                <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                                                  <default>
-                                                                                                    <constraint id="146">
-                                                                                                      <x>337</x>
-                                                                                                      <y>437</y>
-                                                                                                      <width>80</width>
-                                                                                                      <height>40</height>
-                                                                                                    </constraint>
-                                                                                                    <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="49"/>
-                                                                                                    <incomingConnections id="147">
-                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="143"/>
-                                                                                                    </incomingConnections>
-                                                                                                    <outgoingConnections id="148"/>
-                                                                                                    <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="48"/>
-                                                                                            </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.SplitWrapper>
-                                                                                    <default/>
-                                                                                  </org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
-                                                                                </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="21"/>
-                                                                              </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 reference="137"/>
-                                                                          <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="150">
-                                                                            <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
-                                                                            <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="17"/>
-                                                                            <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="16"/>
-                                                                </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.SplitWrapper>
-                                                        <default/>
-                                                      </org.drools.eclipse.flow.ruleflow.core.SplitWrapper>
-                                                    </source>
-                                                    <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" 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="13"/>
-                                                  </default>
-                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                            </incomingConnections>
-                                            <outgoingConnections id="151">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="77"/>
-                                            </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="74"/>
-                                    </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="10"/>
-                                    </default>
-                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="152" serialization="custom">
-                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                    <default>
-                                      <type>1</type>
-                                      <bendpoints id="153"/>
-                                      <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="154" serialization="custom">
-                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                          <default>
-                                            <constraint id="155">
-                                              <x>229</x>
-                                              <y>68</y>
-                                              <width>89</width>
-                                              <height>40</height>
-                                            </constraint>
-                                            <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="62"/>
-                                            <incomingConnections id="156">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="157" serialization="custom">
-                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                  <default>
-                                                    <type>1</type>
-                                                    <bendpoints id="158"/>
-                                                    <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="159" serialization="custom">
-                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                        <default>
-                                                          <constraint id="160">
-                                                            <x>235</x>
-                                                            <y>9</y>
-                                                            <width>80</width>
-                                                            <height>40</height>
-                                                          </constraint>
-                                                          <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="65"/>
-                                                          <incomingConnections id="161"/>
-                                                          <outgoingConnections id="162">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="157"/>
-                                                          </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="154"/>
-                                                  </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="64"/>
-                                                  </default>
-                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                            </incomingConnections>
-                                            <outgoingConnections id="163">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="152"/>
-                                            </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="74"/>
-                                    </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="61"/>
-                                    </default>
-                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                              </incomingConnections>
-                              <outgoingConnections id="164">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="72"/>
-                              </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.MilestoneWrapper" reference="3"/>
-                      </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="7"/>
-                      </default>
-                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                </incomingConnections>
-                <outgoingConnections id="165">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="89"/>
-                </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.MilestoneWrapper>
-              <default>
-                <descriptors id="166">
-                  <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="137"/>
-                  <org.drools.eclipse.flow.ruleflow.view.property.constraint.MilestoneConstraintPropertyDescriptor id="167">
-                    <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
-                    <milestone class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="5"/>
-                    <id class="string">Constraint</id>
-                    <display>Constraint</display>
-                    <incompatible>false</incompatible>
-                  </org.drools.eclipse.flow.ruleflow.view.property.constraint.MilestoneConstraintPropertyDescriptor>
-                </descriptors>
-              </default>
-            </org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper>
-          </org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper>
-        </entry>
-        <entry>
-          <string>16-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="86"/>
-        </entry>
-        <entry>
-          <string>28-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="94"/>
-        </entry>
-        <entry>
-          <string>19-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="100"/>
-        </entry>
-        <entry>
-          <string>17-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="80"/>
-        </entry>
-        <entry>
-          <string>23-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="112"/>
-        </entry>
-        <entry>
-          <string>25-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper reference="106"/>
-        </entry>
-        <entry>
-          <string>29-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="126"/>
-        </entry>
-        <entry>
-          <string>7-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="159"/>
-        </entry>
-        <entry>
-          <string>8-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="132"/>
-        </entry>
-        <entry>
-          <string>11-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="154"/>
-        </entry>
-        <entry>
-          <string>26-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper reference="117"/>
-        </entry>
-        <entry>
-          <string>15-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="74"/>
-        </entry>
-        <entry>
-          <string>27-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="145"/>
-        </entry>
-      </elements>
-      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="139"/>
-      <routerLayout>2</routerLayout>
-    </default>
-  </org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-</org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="ClinicalPathwayX" id="org.drools.examples.cdss.ClinicalPathwayX" package-name="com.sample" version="1.0" >
+
+  <header>
+    <imports>
+      <import name="org.drools.examples.cdss.data.Diagnose" />
+      <import name="org.drools.examples.cdss.Terminology" />
+    </imports>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" x="26" y="100" width="80" height="40" />
+    <action id="3" name="Notify GP" x="463" y="199" width="80" height="40" dialect="mvel" >System.out.println("Notifying GP of patient of the diagnose.");</action>
+    <ruleSet id="4" name="Examinations" x="145" y="102" ruleFlowGroup="Examinations" />
+    <join id="5" name="" x="255" y="113" width="19" height="17" type="2" />
+    <ruleSet id="6" name="Additional Examinations" x="310" y="24" width="144" height="40" ruleFlowGroup="AdditionalExaminations" />
+    <split id="7" name="Diagnose complete?" x="441" y="101" width="120" height="40" type="2" >
+      <constraints>
+        <constraint toNodeId="6" toType="DROOLS_DEFAULT" name="Diagnose inconclusive" priority="1" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
+        <constraint toNodeId="3" toType="DROOLS_DEFAULT" name="Diagnosed complete" priority="2" type="rule" dialect="mvel" >eval(true)</constraint>
+      </constraints>
+    </split>
+    <split id="8" name="Select Treatment" x="446" y="261" width="116" height="40" type="2" >
+      <constraints>
+        <constraint toNodeId="10" toType="DROOLS_DEFAULT" name="Diagnosed type 2" priority="2" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE2 )</constraint>
+        <constraint toNodeId="9" toType="DROOLS_DEFAULT" name="Diagnosed type 1" priority="1" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE1 )</constraint>
+        <constraint toNodeId="12" toType="DROOLS_DEFAULT" name="Else" priority="3" type="rule" dialect="mvel" >eval(true)</constraint>
+      </constraints>
+    </split>
+    <subProcess id="9" name="Treatment X" x="317" y="343" width="99" height="40" processId="org.drools.examples.cdss.TreatmentX" />
+    <subProcess id="10" name="Treatment Y" x="437" y="342" width="99" height="40" processId="org.drools.examples.cdss.TreatmentY" />
+    <join id="11" name="" x="416" y="416" width="19" height="19" type="2" />
+    <end id="12" name="End" x="576" y="341" width="80" height="40" />
+    <action id="13" name="Schedule Follow-up" x="356" y="455" width="139" height="40" dialect="mvel" >System.out.println("Scheduling follow-up of patient.");</action>
+    <end id="14" name="End" x="386" y="528" width="80" height="40" />
+    <milestone id="15" name="Wait for Diagnose" x="293" y="101" width="124" height="40" >Diagnose( )</milestone>
+  </nodes>
+
+  <connections>
+    <connection from="7" to="3" />
+    <connection from="1" to="4" />
+    <connection from="4" to="5" />
+    <connection from="6" to="5" bendpoints="[263,43]" />
+    <connection from="7" to="6" bendpoints="[500,45]" />
+    <connection from="15" to="7" />
+    <connection from="3" to="8" />
+    <connection from="8" to="9" />
+    <connection from="8" to="10" />
+    <connection from="9" to="11" />
+    <connection from="10" to="11" />
+    <connection from="8" to="12" />
+    <connection from="11" to="13" />
+    <connection from="13" to="14" />
+    <connection from="5" to="15" />
+  </connections>
+
+</process>
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rfm
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rfm	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rfm	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,315 +1,60 @@
-<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
-  <nodes id="2">
-    <entry>
-      <long>7</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl id="3">
-        <id>7</id>
-        <name>Start</name>
-        <incomingConnections id="4"/>
-        <outgoingConnections id="5">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="6">
-            <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="3"/>
-            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="7">
-              <ruleFlowGroup>Examinations</ruleFlowGroup>
-              <id>11</id>
-              <name>Examinations</name>
-              <incomingConnections id="8">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="6"/>
-              </incomingConnections>
-              <outgoingConnections id="9">
-                <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
-                  <type>1</type>
-                  <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="7"/>
-                  <to class="org.drools.ruleflow.core.impl.JoinImpl" id="11">
-                    <type>2</type>
-                    <id>15</id>
-                    <name></name>
-                    <incomingConnections id="12">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl id="13">
-                        <type>1</type>
-                        <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="14">
-                          <ruleFlowGroup>AdditionalExaminations</ruleFlowGroup>
-                          <id>17</id>
-                          <name>Additional Examinations</name>
-                          <incomingConnections id="15">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="16">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.SplitImpl" id="17">
-                                <type>2</type>
-                                <constraints id="18">
-                                  <entry>
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
-                                      <type>1</type>
-                                      <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="17"/>
-                                      <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="20">
-                                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="21">
-                                          <consequence>System.out.println(&quot;Notifying GP of patient of the diagnose.&quot;);</consequence>
-                                        </action>
-                                        <id>28</id>
-                                        <name>Notify GP</name>
-                                        <incomingConnections id="22">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
-                                        </incomingConnections>
-                                        <outgoingConnections id="23">
-                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
-                                            <type>1</type>
-                                            <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="20"/>
-                                            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="25">
-                                              <type>2</type>
-                                              <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.SubFlowNodeImpl" id="28">
-                                                      <processId>org.drools.examples.cdss.TreatmentX</processId>
-                                                      <id>25</id>
-                                                      <name>Treatment X</name>
-                                                      <incomingConnections id="29">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
-                                                      </incomingConnections>
-                                                      <outgoingConnections id="30">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="31">
-                                                          <type>1</type>
-                                                          <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="28"/>
-                                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" id="32">
-                                                            <type>2</type>
-                                                            <id>23</id>
-                                                            <name></name>
-                                                            <incomingConnections id="33">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
-                                                                <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="35">
-                                                                  <processId>org.drools.examples.cdss.TreatmentY</processId>
-                                                                  <id>26</id>
-                                                                  <name>Treatment Y</name>
-                                                                  <incomingConnections id="36">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="37">
-                                                                      <type>1</type>
-                                                                      <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="25"/>
-                                                                      <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="35"/>
-                                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                                  </incomingConnections>
-                                                                  <outgoingConnections id="38">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
-                                                                  </outgoingConnections>
-                                                                </from>
-                                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="32"/>
-                                                              </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>
-                                                            </incomingConnections>
-                                                            <outgoingConnections id="39">
-                                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="40">
-                                                                <type>1</type>
-                                                                <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="32"/>
-                                                                <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="41">
-                                                                  <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="42">
-                                                                    <consequence>System.out.println(&quot;Scheduling follow-up of patient.&quot;);</consequence>
-                                                                  </action>
-                                                                  <id>29</id>
-                                                                  <name>Schedule Follow-up</name>
-                                                                  <incomingConnections id="43">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
-                                                                  </incomingConnections>
-                                                                  <outgoingConnections id="44">
-                                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="45">
-                                                                      <type>1</type>
-                                                                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="41"/>
-                                                                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="46">
-                                                                        <id>8</id>
-                                                                        <name>End</name>
-                                                                        <incomingConnections id="47">
-                                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="45"/>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="48"/>
-                                                                      </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="49">
-                                                    <name>Diagnosed type 1</name>
-                                                    <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE1 )</constraint>
-                                                    <priority>1</priority>
-                                                  </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                </entry>
-                                                <entry>
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="50">
-                                                    <name>Diagnosed type 2</name>
-                                                    <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE2 )</constraint>
-                                                    <priority>2</priority>
-                                                  </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                </entry>
-                                                <entry>
-                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="51">
-                                                    <type>1</type>
-                                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="25"/>
-                                                    <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="52">
-                                                      <id>27</id>
-                                                      <name>End</name>
-                                                      <incomingConnections id="53">
-                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="51"/>
-                                                      </incomingConnections>
-                                                      <outgoingConnections id="54"/>
-                                                    </to>
-                                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="55">
-                                                    <name>Else</name>
-                                                    <constraint>eval(true)</constraint>
-                                                    <priority>3</priority>
-                                                  </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                                </entry>
-                                              </constraints>
-                                              <id>19</id>
-                                              <name>Select Treatment</name>
-                                              <incomingConnections id="56">
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
-                                              </incomingConnections>
-                                              <outgoingConnections id="57">
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="37"/>
-                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="51"/>
-                                              </outgoingConnections>
-                                            </to>
-                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                        </outgoingConnections>
-                                      </to>
-                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                    <org.drools.ruleflow.core.impl.ConstraintImpl id="58">
-                                      <name>Diagnose complete</name>
-                                      <constraint>eval(true)</constraint>
-                                      <priority>2</priority>
-                                    </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                  </entry>
-                                  <entry>
-                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                                    <org.drools.ruleflow.core.impl.ConstraintImpl id="59">
-                                      <name>Diagnose inconclusive</name>
-                                      <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
-                                      <priority>1</priority>
-                                    </org.drools.ruleflow.core.impl.ConstraintImpl>
-                                  </entry>
-                                </constraints>
-                                <id>16</id>
-                                <name>Diagnose complete?</name>
-                                <incomingConnections id="60">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="61">
-                                    <type>1</type>
-                                    <from class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" id="62">
-                                      <constraint>Diagnose(  )</constraint>
-                                      <id>12</id>
-                                      <name>Wait for Diagnose</name>
-                                      <incomingConnections id="63">
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="64">
-                                          <type>1</type>
-                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="11"/>
-                                          <to class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="62"/>
-                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                      </incomingConnections>
-                                      <outgoingConnections id="65">
-                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="61"/>
-                                      </outgoingConnections>
-                                    </from>
-                                    <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="17"/>
-                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                </incomingConnections>
-                                <outgoingConnections id="66">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
-                                </outgoingConnections>
-                              </from>
-                              <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="14"/>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          </incomingConnections>
-                          <outgoingConnections id="67">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                          </outgoingConnections>
-                        </from>
-                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="11"/>
-                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
-                    </incomingConnections>
-                    <outgoingConnections id="68">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="64"/>
-                    </outgoingConnections>
-                  </to>
-                </org.drools.ruleflow.core.impl.ConnectionImpl>
-              </outgoingConnections>
-            </to>
-          </org.drools.ruleflow.core.impl.ConnectionImpl>
-        </outgoingConnections>
-      </org.drools.ruleflow.core.impl.StartNodeImpl>
-    </entry>
-    <entry>
-      <long>8</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="46"/>
-    </entry>
-    <entry>
-      <long>11</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="7"/>
-    </entry>
-    <entry>
-      <long>12</long>
-      <org.drools.ruleflow.core.impl.MilestoneNodeImpl reference="62"/>
-    </entry>
-    <entry>
-      <long>15</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="11"/>
-    </entry>
-    <entry>
-      <long>17</long>
-      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="14"/>
-    </entry>
-    <entry>
-      <long>16</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="17"/>
-    </entry>
-    <entry>
-      <long>19</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="25"/>
-    </entry>
-    <entry>
-      <long>23</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="32"/>
-    </entry>
-    <entry>
-      <long>25</long>
-      <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="28"/>
-    </entry>
-    <entry>
-      <long>27</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="52"/>
-    </entry>
-    <entry>
-      <long>26</long>
-      <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="35"/>
-    </entry>
-    <entry>
-      <long>29</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="41"/>
-    </entry>
-    <entry>
-      <long>28</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="20"/>
-    </entry>
-  </nodes>
-  <variables id="69"/>
-  <lastNodeId>31</lastNodeId>
-  <imports id="70">
-    <string>org.drools.examples.cdss.data.Diagnose</string>
-    <string>org.drools.examples.cdss.Terminology</string>
-  </imports>
-  <id>org.drools.examples.cdss.ClinicalPathwayX</id>
-  <name>ClinicalPathwayX</name>
-  <version>1.0</version>
-  <type>RuleFlow</type>
-  <packageName>com.sample</packageName>
-</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="ClinicalPathwayX" id="org.drools.examples.cdss.ClinicalPathwayX" package-name="com.sample" version="1.0" >
+
+  <header>
+    <imports>
+      <import name="org.drools.examples.cdss.data.Diagnose" />
+      <import name="org.drools.examples.cdss.Terminology" />
+    </imports>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" />
+    <action id="3" name="Notify GP" dialect="mvel" >System.out.println("Notifying GP of patient of the diagnose.");</action>
+    <ruleSet id="4" name="Examinations" ruleFlowGroup="Examinations" />
+    <join id="5" name="" type="2" />
+    <ruleSet id="6" name="Additional Examinations" ruleFlowGroup="AdditionalExaminations" />
+    <split id="7" name="Diagnose complete?" type="2" >
+      <constraints>
+        <constraint toNodeId="6" toType="DROOLS_DEFAULT" name="Diagnose inconclusive" priority="1" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
+        <constraint toNodeId="3" toType="DROOLS_DEFAULT" name="Diagnosed complete" priority="2" type="rule" dialect="mvel" >eval(true)</constraint>
+      </constraints>
+    </split>
+    <split id="8" name="Select Treatment" type="2" >
+      <constraints>
+        <constraint toNodeId="10" toType="DROOLS_DEFAULT" name="Diagnosed type 2" priority="2" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE2 )</constraint>
+        <constraint toNodeId="9" toType="DROOLS_DEFAULT" name="Diagnosed type 1" priority="1" type="rule" dialect="mvel" >Diagnose( type == Terminology.DIAGNOSE_X_TYPE1 )</constraint>
+        <constraint toNodeId="12" toType="DROOLS_DEFAULT" name="Else" priority="3" type="rule" dialect="mvel" >eval(true)</constraint>
+      </constraints>
+    </split>
+    <subProcess id="9" name="Treatment X" processId="org.drools.examples.cdss.TreatmentX" />
+    <subProcess id="10" name="Treatment Y" processId="org.drools.examples.cdss.TreatmentY" />
+    <join id="11" name="" type="2" />
+    <end id="12" name="End" />
+    <action id="13" name="Schedule Follow-up" dialect="mvel" >System.out.println("Scheduling follow-up of patient.");</action>
+    <end id="14" name="End" />
+    <milestone id="15" name="Wait for Diagnose" >Diagnose( )</milestone>
+  </nodes>
+
+  <connections>
+    <connection from="7" to="3" />
+    <connection from="1" to="4" />
+    <connection from="4" to="5" />
+    <connection from="6" to="5" />
+    <connection from="7" to="6" />
+    <connection from="15" to="7" />
+    <connection from="3" to="8" />
+    <connection from="8" to="9" />
+    <connection from="8" to="10" />
+    <connection from="9" to="11" />
+    <connection from="10" to="11" />
+    <connection from="8" to="12" />
+    <connection from="11" to="13" />
+    <connection from="13" to="14" />
+    <connection from="5" to="15" />
+  </connections>
+
+</process>
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/GenericRules.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/GenericRules.drl	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/GenericRules.drl	2008-05-17 00:36:19 UTC (rev 19975)
@@ -19,7 +19,7 @@
 
 rule "Always do examination4 when patient older than 60"
 	when
-		Patient( age > 80 )
+		Patient( age > 60 )
 	then
 		recommendationService.createRecommendation(
 			new Recommendation("Examination4"));

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rf
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rf	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rf	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,176 +1,21 @@
-<org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper id="1" serialization="custom">
-  <org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-    <default>
-      <elements id="2">
-        <entry>
-          <string>4-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper id="3" serialization="custom">
-            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-              <default>
-                <constraint id="4">
-                  <x>217</x>
-                  <y>101</y>
-                  <width>140</width>
-                  <height>40</height>
-                </constraint>
-                <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="5">
-                  <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="6">
-                    <consequence>System.out.println(&quot;Executing TreatmentX&quot;);</consequence>
-                  </action>
-                  <id>4</id>
-                  <name>Dummy TreatmentX</name>
-                  <incomingConnections id="7">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl id="8">
-                      <type>1</type>
-                      <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="9">
-                        <id>1</id>
-                        <name>Start</name>
-                        <incomingConnections id="10"/>
-                        <outgoingConnections id="11">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
-                        </outgoingConnections>
-                      </from>
-                      <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                  </incomingConnections>
-                  <outgoingConnections id="12">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl id="13">
-                      <type>1</type>
-                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="14">
-                        <id>2</id>
-                        <name>End</name>
-                        <incomingConnections id="15">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="13"/>
-                        </incomingConnections>
-                        <outgoingConnections id="16"/>
-                      </to>
-                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                  </outgoingConnections>
-                </element>
-                <incomingConnections id="17">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="18" serialization="custom">
-                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                      <default>
-                        <type>1</type>
-                        <bendpoints id="19"/>
-                        <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="20" serialization="custom">
-                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                            <default>
-                              <constraint id="21">
-                                <x>99</x>
-                                <y>100</y>
-                                <width>80</width>
-                                <height>40</height>
-                              </constraint>
-                              <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="9"/>
-                              <incomingConnections id="22"/>
-                              <outgoingConnections id="23">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="18"/>
-                              </outgoingConnections>
-                            </default>
-                          </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                        </source>
-                        <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="3"/>
-                      </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="8"/>
-                      </default>
-                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                </incomingConnections>
-                <outgoingConnections id="24">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="25" serialization="custom">
-                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                      <default>
-                        <type>1</type>
-                        <bendpoints id="26"/>
-                        <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="3"/>
-                        <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="27" serialization="custom">
-                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                            <default>
-                              <constraint id="28">
-                                <x>393</x>
-                                <y>101</y>
-                                <width>80</width>
-                                <height>40</height>
-                              </constraint>
-                              <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="14"/>
-                              <incomingConnections id="29">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="25"/>
-                              </incomingConnections>
-                              <outgoingConnections id="30"/>
-                              <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="13"/>
-                      </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="31">
-                  <org.eclipse.ui.views.properties.TextPropertyDescriptor id="32">
-                    <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="33">
-                    <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="34">
-                      <nodes id="35">
-                        <entry>
-                          <long>1</long>
-                          <org.drools.ruleflow.core.impl.StartNodeImpl reference="9"/>
-                        </entry>
-                        <entry>
-                          <long>2</long>
-                          <org.drools.ruleflow.core.impl.EndNodeImpl reference="14"/>
-                        </entry>
-                        <entry>
-                          <long>4</long>
-                          <org.drools.ruleflow.core.impl.ActionNodeImpl reference="5"/>
-                        </entry>
-                      </nodes>
-                      <variables id="36"/>
-                      <lastNodeId>4</lastNodeId>
-                      <id>org.drools.examples.cdss.TreatmentX</id>
-                      <name>TreatmentX</name>
-                      <version>1.0</version>
-                      <type>RuleFlow</type>
-                      <packageName>com.sample</packageName>
-                    </process>
-                    <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                    <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.ActionWrapper>
-        </entry>
-        <entry>
-          <string>2-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="27"/>
-        </entry>
-        <entry>
-          <string>1-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="20"/>
-        </entry>
-      </elements>
-      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="34"/>
-      <routerLayout>2</routerLayout>
-    </default>
-  </org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-</org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="TreatmentX" id="org.drools.examples.cdss.TreatmentX" package-name="com.sample" version="1.0" >
+
+  <header>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" x="100" y="100" />
+    <action id="2" name="Dummy TreatmentX" x="214" y="99" width="138" height="40" dialect="mvel" >System.out.println("Executing TreatmentX");</action>
+    <end id="3" name="End" x="398" y="99" />
+  </nodes>
+
+  <connections>
+    <connection from="1" to="2" />
+    <connection from="2" to="3" />
+  </connections>
+
+</process>
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rfm
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rfm	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rfm	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,57 +1,21 @@
-<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
-  <nodes id="2">
-    <entry>
-      <long>1</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl id="3">
-        <id>1</id>
-        <name>Start</name>
-        <incomingConnections id="4"/>
-        <outgoingConnections id="5">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="6">
-            <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="3"/>
-            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="7">
-              <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="8">
-                <consequence>System.out.println(&quot;Executing TreatmentX&quot;);</consequence>
-              </action>
-              <id>4</id>
-              <name>Dummy TreatmentX</name>
-              <incomingConnections id="9">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="6"/>
-              </incomingConnections>
-              <outgoingConnections id="10">
-                <org.drools.ruleflow.core.impl.ConnectionImpl id="11">
-                  <type>1</type>
-                  <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="7"/>
-                  <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="12">
-                    <id>2</id>
-                    <name>End</name>
-                    <incomingConnections id="13">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>
-                    </incomingConnections>
-                    <outgoingConnections id="14"/>
-                  </to>
-                </org.drools.ruleflow.core.impl.ConnectionImpl>
-              </outgoingConnections>
-            </to>
-          </org.drools.ruleflow.core.impl.ConnectionImpl>
-        </outgoingConnections>
-      </org.drools.ruleflow.core.impl.StartNodeImpl>
-    </entry>
-    <entry>
-      <long>2</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="12"/>
-    </entry>
-    <entry>
-      <long>4</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="7"/>
-    </entry>
-  </nodes>
-  <variables id="15"/>
-  <lastNodeId>4</lastNodeId>
-  <id>org.drools.examples.cdss.TreatmentX</id>
-  <name>TreatmentX</name>
-  <version>1.0</version>
-  <type>RuleFlow</type>
-  <packageName>com.sample</packageName>
-</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="TreatmentX" id="org.drools.examples.cdss.TreatmentX" package-name="com.sample" version="1.0" >
+
+  <header>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" />
+    <action id="2" name="Dummy TreatmentX" dialect="mvel" >System.out.println("Executing TreatmentX");</action>
+    <end id="3" name="End" />
+  </nodes>
+
+  <connections>
+    <connection from="1" to="2" />
+    <connection from="2" to="3" />
+  </connections>
+
+</process>
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rf
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rf	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rf	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,500 +1,31 @@
-<org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper id="1" serialization="custom">
-  <org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-    <default>
-      <elements id="2">
-        <entry>
-          <string>3-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper id="3" serialization="custom">
-            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-              <default>
-                <constraint id="4">
-                  <x>211</x>
-                  <y>43</y>
-                  <width>166</width>
-                  <height>40</height>
-                </constraint>
-                <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="5">
-                  <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="6">
-                    <consequence>System.out.println(&quot;Executing TreatmentY Part1&quot;);</consequence>
-                  </action>
-                  <id>3</id>
-                  <name>Dummy TreatmentY Part1</name>
-                  <incomingConnections id="7">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl id="8">
-                      <type>1</type>
-                      <from class="org.drools.ruleflow.core.impl.SplitImpl" id="9">
-                        <type>1</type>
-                        <constraints id="10"/>
-                        <id>4</id>
-                        <name>AND</name>
-                        <incomingConnections id="11">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl id="12">
-                            <type>1</type>
-                            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="13">
-                              <id>1</id>
-                              <name>Start</name>
-                              <incomingConnections id="14"/>
-                              <outgoingConnections id="15">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
-                              </outgoingConnections>
-                            </from>
-                            <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
-                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                        </incomingConnections>
-                        <outgoingConnections id="16">
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
-                          <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
-                            <type>1</type>
-                            <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
-                            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="18">
-                              <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="19">
-                                <consequence>System.out.println(&quot;Executing TreatmentY Part2&quot;);</consequence>
-                              </action>
-                              <id>6</id>
-                              <name>Dummy TreatmentY Part2</name>
-                              <incomingConnections id="20">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
-                              </incomingConnections>
-                              <outgoingConnections id="21">
-                                <org.drools.ruleflow.core.impl.ConnectionImpl id="22">
-                                  <type>1</type>
-                                  <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="18"/>
-                                  <to class="org.drools.ruleflow.core.impl.JoinImpl" id="23">
-                                    <type>1</type>
-                                    <id>5</id>
-                                    <name>AND</name>
-                                    <incomingConnections id="24">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
-                                        <type>1</type>
-                                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
-                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="22"/>
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="26">
-                                        <type>1</type>
-                                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="27">
-                                          <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="28">
-                                            <consequence>System.out.println(&quot;Executing TreatmentY Part3&quot;);</consequence>
-                                          </action>
-                                          <id>7</id>
-                                          <name>Dummy TreatmentY Part3</name>
-                                          <incomingConnections id="29">
-                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
-                                              <type>1</type>
-                                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
-                                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="27"/>
-                                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                          </incomingConnections>
-                                          <outgoingConnections id="31">
-                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="26"/>
-                                          </outgoingConnections>
-                                        </from>
-                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
-                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                    </incomingConnections>
-                                    <outgoingConnections id="32">
-                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="33">
-                                        <type>1</type>
-                                        <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
-                                        <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="34">
-                                          <id>2</id>
-                                          <name>End</name>
-                                          <incomingConnections id="35">
-                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="33"/>
-                                          </incomingConnections>
-                                          <outgoingConnections id="36"/>
-                                        </to>
-                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                    </outgoingConnections>
-                                  </to>
-                                </org.drools.ruleflow.core.impl.ConnectionImpl>
-                              </outgoingConnections>
-                            </to>
-                          </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
-                        </outgoingConnections>
-                      </from>
-                      <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                    </org.drools.ruleflow.core.impl.ConnectionImpl>
-                  </incomingConnections>
-                  <outgoingConnections id="37">
-                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
-                  </outgoingConnections>
-                </element>
-                <incomingConnections id="38">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="39" serialization="custom">
-                    <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                      <default>
-                        <type>1</type>
-                        <bendpoints id="40">
-                          <org.eclipse.draw2d.geometry.Point id="41">
-                            <x>170</x>
-                            <y>63</y>
-                          </org.eclipse.draw2d.geometry.Point>
-                        </bendpoints>
-                        <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="42" serialization="custom">
-                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                            <default>
-                              <constraint id="43">
-                                <x>141</x>
-                                <y>100</y>
-                                <width>38</width>
-                                <height>40</height>
-                              </constraint>
-                              <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
-                              <incomingConnections id="44">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="45" serialization="custom">
-                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                    <default>
-                                      <type>1</type>
-                                      <bendpoints id="46"/>
-                                      <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="47" serialization="custom">
-                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                          <default>
-                                            <constraint id="48">
-                                              <x>34</x>
-                                              <y>98</y>
-                                              <width>80</width>
-                                              <height>40</height>
-                                            </constraint>
-                                            <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="13"/>
-                                            <incomingConnections id="49"/>
-                                            <outgoingConnections id="50">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="45"/>
-                                            </outgoingConnections>
-                                          </default>
-                                        </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                      </source>
-                                      <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="42"/>
-                                    </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="12"/>
-                                    </default>
-                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                              </incomingConnections>
-                              <outgoingConnections id="51">
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="39"/>
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="52" serialization="custom">
-                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                    <default>
-                                      <type>1</type>
-                                      <bendpoints id="53"/>
-                                      <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="42"/>
-                                      <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="54" serialization="custom">
-                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                          <default>
-                                            <constraint id="55">
-                                              <x>210</x>
-                                              <y>98</y>
-                                              <width>166</width>
-                                              <height>40</height>
-                                            </constraint>
-                                            <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="18"/>
-                                            <incomingConnections id="56">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="52"/>
-                                            </incomingConnections>
-                                            <outgoingConnections id="57">
-                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="58" serialization="custom">
-                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                  <default>
-                                                    <type>1</type>
-                                                    <bendpoints id="59"/>
-                                                    <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="54"/>
-                                                    <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="60" serialization="custom">
-                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                        <default>
-                                                          <constraint id="61">
-                                                            <x>411</x>
-                                                            <y>100</y>
-                                                            <width>39</width>
-                                                            <height>40</height>
-                                                          </constraint>
-                                                          <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="23"/>
-                                                          <incomingConnections id="62">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="63" serialization="custom">
-                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                <default>
-                                                                  <type>1</type>
-                                                                  <bendpoints id="64">
-                                                                    <org.eclipse.draw2d.geometry.Point id="65">
-                                                                      <x>414</x>
-                                                                      <y>62</y>
-                                                                    </org.eclipse.draw2d.geometry.Point>
-                                                                  </bendpoints>
-                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="3"/>
-                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="60"/>
-                                                                </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"/>
-                                                                </default>
-                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="58"/>
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="66" serialization="custom">
-                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                <default>
-                                                                  <type>1</type>
-                                                                  <bendpoints id="67">
-                                                                    <org.eclipse.draw2d.geometry.Point id="68">
-                                                                      <x>416</x>
-                                                                      <y>177</y>
-                                                                    </org.eclipse.draw2d.geometry.Point>
-                                                                  </bendpoints>
-                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="69" serialization="custom">
-                                                                    <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                      <default>
-                                                                        <constraint id="70">
-                                                                          <x>209</x>
-                                                                          <y>157</y>
-                                                                          <width>167</width>
-                                                                          <height>40</height>
-                                                                        </constraint>
-                                                                        <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="27"/>
-                                                                        <incomingConnections id="71">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="72" serialization="custom">
-                                                                            <org.drools.eclipse.flow.common.editor.core.ElementConnection>
-                                                                              <default>
-                                                                                <type>1</type>
-                                                                                <bendpoints id="73">
-                                                                                  <org.eclipse.draw2d.geometry.Point id="74">
-                                                                                    <x>172</x>
-                                                                                    <y>178</y>
-                                                                                  </org.eclipse.draw2d.geometry.Point>
-                                                                                </bendpoints>
-                                                                                <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="42"/>
-                                                                                <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="69"/>
-                                                                              </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="30"/>
-                                                                              </default>
-                                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                          </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="75">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="66"/>
-                                                                        </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="76">
-                                                                          <org.eclipse.ui.views.properties.TextPropertyDescriptor id="77">
-                                                                            <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="78">
-                                                                            <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="79">
-                                                                              <nodes id="80">
-                                                                                <entry>
-                                                                                  <long>1</long>
-                                                                                  <org.drools.ruleflow.core.impl.StartNodeImpl reference="13"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>2</long>
-                                                                                  <org.drools.ruleflow.core.impl.EndNodeImpl reference="34"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>3</long>
-                                                                                  <org.drools.ruleflow.core.impl.ActionNodeImpl reference="5"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>4</long>
-                                                                                  <org.drools.ruleflow.core.impl.SplitImpl reference="9"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>5</long>
-                                                                                  <org.drools.ruleflow.core.impl.JoinImpl reference="23"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>6</long>
-                                                                                  <org.drools.ruleflow.core.impl.ActionNodeImpl reference="18"/>
-                                                                                </entry>
-                                                                                <entry>
-                                                                                  <long>7</long>
-                                                                                  <org.drools.ruleflow.core.impl.ActionNodeImpl reference="27"/>
-                                                                                </entry>
-                                                                              </nodes>
-                                                                              <variables id="81"/>
-                                                                              <lastNodeId>7</lastNodeId>
-                                                                              <id>org.drools.examples.cdss.TreatmentY</id>
-                                                                              <name>TreatmentY</name>
-                                                                              <version>1.0</version>
-                                                                              <type>RuleFlow</type>
-                                                                              <packageName>com.sample</packageName>
-                                                                            </process>
-                                                                            <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="27"/>
-                                                                            <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="60"/>
-                                                                </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="26"/>
-                                                                </default>
-                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                                          </incomingConnections>
-                                                          <outgoingConnections id="82">
-                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="83" 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.JoinWrapper" reference="60"/>
-                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="85" serialization="custom">
-                                                                    <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
-                                                                      <default>
-                                                                        <constraint id="86">
-                                                                          <x>470</x>
-                                                                          <y>98</y>
-                                                                          <width>80</width>
-                                                                          <height>40</height>
-                                                                        </constraint>
-                                                                        <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="34"/>
-                                                                        <incomingConnections id="87">
-                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="83"/>
-                                                                        </incomingConnections>
-                                                                        <outgoingConnections id="88"/>
-                                                                        <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="33"/>
-                                                                </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="22"/>
-                                                  </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="89">
-                                              <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="77"/>
-                                              <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="90">
-                                                <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="79"/>
-                                                <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="18"/>
-                                                <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="17"/>
-                                    </default>
-                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="72"/>
-                              </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="3"/>
-                      </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="8"/>
-                      </default>
-                    </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
-                </incomingConnections>
-                <outgoingConnections id="91">
-                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="63"/>
-                </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="92">
-                  <org.eclipse.ui.views.properties.TextPropertyDescriptor id="93">
-                    <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="94">
-                    <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="79"/>
-                    <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="5"/>
-                    <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.ActionWrapper>
-        </entry>
-        <entry>
-          <string>4-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="42"/>
-        </entry>
-        <entry>
-          <string>7-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="69"/>
-        </entry>
-        <entry>
-          <string>2-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="85"/>
-        </entry>
-        <entry>
-          <string>1-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="47"/>
-        </entry>
-        <entry>
-          <string>6-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="54"/>
-        </entry>
-        <entry>
-          <string>5-Wrapper</string>
-          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="60"/>
-        </entry>
-      </elements>
-      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="79"/>
-      <routerLayout>0</routerLayout>
-    </default>
-  </org.drools.eclipse.flow.common.editor.core.ProcessWrapper>
-</org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="TreatmentY" id="org.drools.examples.cdss.TreatmentY" package-name="com.sample" version="1.0" >
+
+  <header>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" x="45" y="99" width="80" height="40" />
+    <split id="2" name="AND" x="156" y="105" width="49" height="34" type="1" />
+    <join id="3" name="AND" x="432" y="102" width="54" height="34" type="1" />
+    <action id="4" name="Dummy TreatmentY Part1" x="240" y="46" width="161" height="40" dialect="mvel" >System.out.println("Executing TreatmentY Part1");</action>
+    <action id="5" name="Dummy TreatmentY Part2" x="241" y="99" width="160" height="40" dialect="mvel" >System.out.println("Executing TreatmentY Part2");</action>
+    <action id="6" name="Dummy TreatmentY Part3" x="241" y="151" width="160" height="40" dialect="mvel" >System.out.println("Executing TreatmentY Part3");</action>
+    <end id="7" name="End" x="509" y="98" width="80" height="40" />
+  </nodes>
+
+  <connections>
+    <connection from="1" to="2" />
+    <connection from="6" to="3" />
+    <connection from="5" to="3" />
+    <connection from="4" to="3" />
+    <connection from="2" to="4" />
+    <connection from="2" to="5" />
+    <connection from="2" to="6" />
+    <connection from="3" to="7" />
+  </connections>
+
+</process>
\ No newline at end of file

Modified: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rfm
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rfm	2008-05-17 00:00:46 UTC (rev 19974)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rfm	2008-05-17 00:36:19 UTC (rev 19975)
@@ -1,146 +1,31 @@
-<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
-  <nodes id="2">
-    <entry>
-      <long>1</long>
-      <org.drools.ruleflow.core.impl.StartNodeImpl id="3">
-        <id>1</id>
-        <name>Start</name>
-        <incomingConnections id="4"/>
-        <outgoingConnections id="5">
-          <org.drools.ruleflow.core.impl.ConnectionImpl id="6">
-            <type>1</type>
-            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="3"/>
-            <to class="org.drools.ruleflow.core.impl.SplitImpl" id="7">
-              <type>1</type>
-              <constraints id="8"/>
-              <id>4</id>
-              <name>AND</name>
-              <incomingConnections id="9">
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="6"/>
-              </incomingConnections>
-              <outgoingConnections id="10">
-                <org.drools.ruleflow.core.impl.ConnectionImpl id="11">
-                  <type>1</type>
-                  <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
-                  <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="12">
-                    <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="13">
-                      <consequence>System.out.println(&quot;Executing TreatmentY Part1&quot;);</consequence>
-                    </action>
-                    <id>3</id>
-                    <name>Dummy TreatmentY Part1</name>
-                    <incomingConnections id="14">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>
-                    </incomingConnections>
-                    <outgoingConnections id="15">
-                      <org.drools.ruleflow.core.impl.ConnectionImpl id="16">
-                        <type>1</type>
-                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="12"/>
-                        <to class="org.drools.ruleflow.core.impl.JoinImpl" id="17">
-                          <type>1</type>
-                          <id>5</id>
-                          <name>AND</name>
-                          <incomingConnections id="18">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="20">
-                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="21">
-                                  <consequence>System.out.println(&quot;Executing TreatmentY Part2&quot;);</consequence>
-                                </action>
-                                <id>6</id>
-                                <name>Dummy TreatmentY Part2</name>
-                                <incomingConnections id="22">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="23">
-                                    <type>1</type>
-                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
-                                    <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="20"/>
-                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                </incomingConnections>
-                                <outgoingConnections id="24">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>
-                                </outgoingConnections>
-                              </from>
-                              <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="26">
-                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="27">
-                                  <consequence>System.out.println(&quot;Executing TreatmentY Part3&quot;);</consequence>
-                                </action>
-                                <id>7</id>
-                                <name>Dummy TreatmentY Part3</name>
-                                <incomingConnections id="28">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="29">
-                                    <type>1</type>
-                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="7"/>
-                                    <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="26"/>
-                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
-                                </incomingConnections>
-                                <outgoingConnections id="30">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
-                                </outgoingConnections>
-                              </from>
-                              <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          </incomingConnections>
-                          <outgoingConnections id="31">
-                            <org.drools.ruleflow.core.impl.ConnectionImpl id="32">
-                              <type>1</type>
-                              <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="17"/>
-                              <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="33">
-                                <id>2</id>
-                                <name>End</name>
-                                <incomingConnections id="34">
-                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
-                                </incomingConnections>
-                                <outgoingConnections id="35"/>
-                              </to>
-                            </org.drools.ruleflow.core.impl.ConnectionImpl>
-                          </outgoingConnections>
-                        </to>
-                      </org.drools.ruleflow.core.impl.ConnectionImpl>
-                    </outgoingConnections>
-                  </to>
-                </org.drools.ruleflow.core.impl.ConnectionImpl>
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="23"/>
-                <org.drools.ruleflow.core.impl.ConnectionImpl reference="29"/>
-              </outgoingConnections>
-            </to>
-          </org.drools.ruleflow.core.impl.ConnectionImpl>
-        </outgoingConnections>
-      </org.drools.ruleflow.core.impl.StartNodeImpl>
-    </entry>
-    <entry>
-      <long>2</long>
-      <org.drools.ruleflow.core.impl.EndNodeImpl reference="33"/>
-    </entry>
-    <entry>
-      <long>3</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="12"/>
-    </entry>
-    <entry>
-      <long>4</long>
-      <org.drools.ruleflow.core.impl.SplitImpl reference="7"/>
-    </entry>
-    <entry>
-      <long>5</long>
-      <org.drools.ruleflow.core.impl.JoinImpl reference="17"/>
-    </entry>
-    <entry>
-      <long>6</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="20"/>
-    </entry>
-    <entry>
-      <long>7</long>
-      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="26"/>
-    </entry>
-  </nodes>
-  <variables id="36"/>
-  <lastNodeId>7</lastNodeId>
-  <id>org.drools.examples.cdss.TreatmentY</id>
-  <name>TreatmentY</name>
-  <version>1.0</version>
-  <type>RuleFlow</type>
-  <packageName>com.sample</packageName>
-</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?> 
+<process xmlns="http://drools.org/drools-4.0/process"
+         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
+         xs:schemaLocation="http://drools.org/drools-4.0/process drools-processes-4.0.xsd"
+         type="RuleFlow" name="TreatmentY" id="org.drools.examples.cdss.TreatmentY" package-name="com.sample" version="1.0" >
+
+  <header>
+  </header>
+
+  <nodes>
+    <start id="1" name="Start" />
+    <split id="2" name="AND" type="1" />
+    <join id="3" name="AND" type="1" />
+    <action id="4" name="Dummy TreatmentY Part1" dialect="mvel" >System.out.println("Executing TreatmentY Part1");</action>
+    <action id="5" name="Dummy TreatmentY Part2" dialect="mvel" >System.out.println("Executing TreatmentY Part2");</action>
+    <action id="6" name="Dummy TreatmentY Part3" dialect="mvel" >System.out.println("Executing TreatmentY Part3");</action>
+    <end id="7" name="End" />
+  </nodes>
+
+  <connections>
+    <connection from="1" to="2" />
+    <connection from="6" to="3" />
+    <connection from="5" to="3" />
+    <connection from="4" to="3" />
+    <connection from="2" to="4" />
+    <connection from="2" to="5" />
+    <connection from="2" to="6" />
+    <connection from="3" to="7" />
+  </connections>
+
+</process>
\ No newline at end of file




More information about the jboss-svn-commits mailing list