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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Aug 19 19:50:03 EDT 2007


Author: KrisVerlaenen
Date: 2007-08-19 19:50:03 -0400 (Sun, 19 Aug 2007)
New Revision: 14374

Added:
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/Terminology.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Diagnose.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Patient.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Recommendation.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/service/
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/service/RecommendationService.java
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/
   labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.drl
   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:
Added new ruleflow example

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/CDSSExample.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,100 @@
+package org.drools.examples.cdss;
+
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.util.Iterator;
+import java.util.List;
+
+import org.drools.RuleBase;
+import org.drools.RuleBaseFactory;
+import org.drools.WorkingMemory;
+import org.drools.audit.WorkingMemoryFileLogger;
+import org.drools.compiler.PackageBuilder;
+import org.drools.examples.cdss.data.Diagnose;
+import org.drools.examples.cdss.data.Patient;
+import org.drools.examples.cdss.service.RecommendationService;
+import org.drools.rule.Package;
+
+/**
+ * This is a sample file to launch a rule package from a rule source file.
+ */
+public class CDSSExample {
+
+    public static final void main(String[] args) {
+        try {
+        	
+        	//load up the rulebase
+            RuleBase ruleBase = readRule();
+            WorkingMemory workingMemory = ruleBase.newStatefulSession();
+            WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(workingMemory);
+
+            // set globals
+            RecommendationService recommendationService = new RecommendationService();
+            workingMemory.setGlobal("recommendationService", recommendationService);
+            
+            // create patient
+            Patient patient = new Patient();
+            patient.setName("John Doe");
+            patient.setAge(20);
+            workingMemory.insert(patient);
+            
+            // Go!
+            Diagnose diagnose = new Diagnose(Terminology.DIAGNOSE_X_TYPE_UNKNOWN);
+            workingMemory.insert(diagnose);
+            workingMemory.fireAllRules();
+            
+            // Print out recommendations
+            List recommendations = recommendationService.getRecommendations();
+            for (Iterator iterator = recommendations.iterator(); iterator.hasNext(); ) {
+            	System.out.println(iterator.next());
+            }
+            recommendations.clear();
+            
+            // Simulate a diagnose: incomplete results
+            diagnose = new Diagnose(Terminology.DIAGNOSE_X_TYPE_UNKNOWN);
+            workingMemory.insert(diagnose);
+            workingMemory.fireAllRules();
+            
+            // Print out recommendations
+            recommendations = recommendationService.getRecommendations();
+            for (Iterator iterator = recommendations.iterator(); iterator.hasNext(); ) {
+            	System.out.println(iterator.next());
+            }
+            recommendations.clear();
+            
+            // Simulate a diagnose: type2
+            diagnose = new Diagnose(Terminology.DIAGNOSE_X_TYPE2);
+            workingMemory.insert(diagnose);
+            workingMemory.fireAllRules();
+            
+            logger.writeToDisk();
+
+        } catch (Throwable t) {
+            t.printStackTrace();
+        }
+    }
+
+	private static RuleBase readRule() throws Exception {
+		PackageBuilder builder = new PackageBuilder();
+		Reader reader = new InputStreamReader(
+			CDSSExample.class.getResourceAsStream("/org/drools/examples/cdss/GenericRules.drl"));
+		builder.addPackageFromDrl(reader);
+		reader = new InputStreamReader(
+			CDSSExample.class.getResourceAsStream("/org/drools/examples/cdss/ClinicalPathwayX.drl"));
+		builder.addPackageFromDrl(reader);
+		reader = new InputStreamReader(
+			CDSSExample.class.getResourceAsStream("/org/drools/examples/cdss/ClinicalPathwayX.rfm"));
+		builder.addRuleFlow(reader);
+		reader = new InputStreamReader(
+			CDSSExample.class.getResourceAsStream("/org/drools/examples/cdss/TreatmentX.rfm"));
+		builder.addRuleFlow(reader);
+		reader = new InputStreamReader(
+			CDSSExample.class.getResourceAsStream("/org/drools/examples/cdss/TreatmentY.rfm"));
+		builder.addRuleFlow(reader);
+
+		Package pkg = builder.getPackage();
+		RuleBase ruleBase = RuleBaseFactory.newRuleBase();
+		ruleBase.addPackage( pkg );
+		return ruleBase;
+	}
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/Terminology.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/Terminology.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/Terminology.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,11 @@
+package org.drools.examples.cdss;
+
+public interface Terminology {
+	
+	String DIAGNOSE_HEALTHY = "Diagnose healthy";
+	
+	String DIAGNOSE_X_TYPE_UNKNOWN = "Diagnose disease X: Type unknown";
+	String DIAGNOSE_X_TYPE1 = "Diagnose disease X: Type 1";
+	String DIAGNOSE_X_TYPE2 = "Diagnose disease X: Type 2";
+
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Diagnose.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Diagnose.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Diagnose.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,19 @@
+package org.drools.examples.cdss.data;
+
+public class Diagnose {
+
+	private String type;
+	
+	public Diagnose(String type) {
+		this.type = type;
+	}
+	
+	public String getType() {
+		return type;
+	}
+	
+	public String toString() {
+		return "Diagnose: " + type;
+	}
+	
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Patient.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Patient.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Patient.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,24 @@
+package org.drools.examples.cdss.data;
+
+public class Patient {
+	
+	private String name;
+	private int age;
+	
+	public int getAge() {
+		return age;
+	}
+	
+	public void setAge(int age) {
+		this.age = age;
+	}
+	
+	public String getName() {
+		return name;
+	}
+	
+	public void setName(String name) {
+		this.name = name;
+	}
+
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Recommendation.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Recommendation.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/data/Recommendation.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,19 @@
+package org.drools.examples.cdss.data;
+
+public class Recommendation {
+
+	private String recommendation;
+	
+	public Recommendation(String recommendation) {
+		this.recommendation = recommendation;
+	}
+	
+	public String getRecommendation() {
+		return recommendation;
+	}
+	
+	public String toString() {
+		return "Recommendation: " + recommendation;
+	}
+	
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/service/RecommendationService.java
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/service/RecommendationService.java	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/java/org/drools/examples/cdss/service/RecommendationService.java	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,20 @@
+package org.drools.examples.cdss.service;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.drools.examples.cdss.data.Recommendation;
+
+public class RecommendationService {
+	
+	private List recommendations = new ArrayList();
+	
+	public void createRecommendation(Recommendation recommendation) {
+		recommendations.add(recommendation);
+	}
+	
+	public List getRecommendations() {
+		return recommendations;
+	}
+
+}

Added: labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.drl
===================================================================
--- labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.drl	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.drl	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,41 @@
+package com.sample
+
+import org.drools.examples.cdss.data.Diagnose;
+import org.drools.examples.cdss.data.Patient;
+import org.drools.examples.cdss.data.Recommendation;
+import org.drools.examples.cdss.service.RecommendationService;
+
+global RecommendationService recommendationService
+
+rule "Examination1"
+	ruleflow-group "Examinations"
+	when
+	then
+		recommendationService.createRecommendation(
+			new Recommendation("Examination1"));
+end
+
+rule "Examination2"
+	ruleflow-group "Examinations"
+	when
+		Patient( age > 18 )
+	then
+		recommendationService.createRecommendation(
+			new Recommendation("Examination2"));
+end
+
+rule "Remove old diagnose"
+	ruleflow-group "AdditionalExaminations"
+	when
+		d: Diagnose( )
+	then
+		retract(d);
+end
+
+rule "Examination3"
+	ruleflow-group "AdditionalExaminations"
+	when
+	then
+		recommendationService.createRecommendation(
+			new Recommendation("Examination3"));
+end
\ No newline at end of file

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rf	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,916 @@
+<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>26-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper id="3" serialization="custom">
+            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+              <default>
+                <constraint id="4">
+                  <x>230</x>
+                  <y>437</y>
+                  <width>90</width>
+                  <height>40</height>
+                </constraint>
+                <element class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="5">
+                  <processId>org.drools.examples.cdss.TreatmentY</processId>
+                  <id>26</id>
+                  <name>Treatment Y</name>
+                  <incomingConnections id="6">
+                    <org.drools.ruleflow.core.impl.ConnectionImpl id="7">
+                      <type>1</type>
+                      <from class="org.drools.ruleflow.core.impl.SplitImpl" id="8">
+                        <type>2</type>
+                        <constraints id="9">
+                          <entry>
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="10">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="8"/>
+                              <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="11">
+                                <processId>org.drools.examples.cdss.TreatmentX</processId>
+                                <id>25</id>
+                                <name>Treatment X</name>
+                                <incomingConnections id="12">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
+                                </incomingConnections>
+                                <outgoingConnections id="13">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="14">
+                                    <type>1</type>
+                                    <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="11"/>
+                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" id="15">
+                                      <type>2</type>
+                                      <id>23</id>
+                                      <name></name>
+                                      <incomingConnections id="16">
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
+                                          <type>1</type>
+                                          <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="5"/>
+                                          <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="15"/>
+                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="14"/>
+                                      </incomingConnections>
+                                      <outgoingConnections id="18">
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="19">
+                                          <type>1</type>
+                                          <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="15"/>
+                                          <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;Scheduling follow-up of patient.&quot;);</consequence>
+                                            </action>
+                                            <id>29</id>
+                                            <name>Schedule Follow-up</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.EndNodeImpl" id="25">
+                                                  <id>8</id>
+                                                  <name>End</name>
+                                                  <incomingConnections id="26">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
+                                                  </incomingConnections>
+                                                  <outgoingConnections id="27"/>
+                                                </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="28">
+                              <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="7"/>
+                            <org.drools.ruleflow.core.impl.ConstraintImpl id="29">
+                              <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="30">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="8"/>
+                              <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="31">
+                                <id>27</id>
+                                <name>End</name>
+                                <incomingConnections id="32">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
+                                </incomingConnections>
+                                <outgoingConnections id="33"/>
+                              </to>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                            <org.drools.ruleflow.core.impl.ConstraintImpl id="34">
+                              <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="35">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl id="36">
+                            <type>1</type>
+                            <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="37">
+                              <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="38">
+                                <consequence>System.out.println(&quot;Notifying GP of patient of the diagnose.&quot;);</consequence>
+                              </action>
+                              <id>28</id>
+                              <name>Notify GP</name>
+                              <incomingConnections id="39">
+                                <org.drools.ruleflow.core.impl.ConnectionImpl id="40">
+                                  <type>1</type>
+                                  <from class="org.drools.ruleflow.core.impl.SplitImpl" id="41">
+                                    <type>2</type>
+                                    <constraints id="42">
+                                      <entry>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="43">
+                                          <type>1</type>
+                                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="41"/>
+                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="44">
+                                            <ruleFlowGroup>AdditionalExaminations</ruleFlowGroup>
+                                            <id>17</id>
+                                            <name>Additional Examinations</name>
+                                            <incomingConnections id="45">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
+                                            </incomingConnections>
+                                            <outgoingConnections id="46">
+                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="47">
+                                                <type>1</type>
+                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="44"/>
+                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" id="48">
+                                                  <type>2</type>
+                                                  <id>15</id>
+                                                  <name></name>
+                                                  <incomingConnections id="49">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="47"/>
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="50">
+                                                      <type>1</type>
+                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="51">
+                                                        <ruleFlowGroup>Examinations</ruleFlowGroup>
+                                                        <id>11</id>
+                                                        <name>Examinations</name>
+                                                        <incomingConnections id="52">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="53">
+                                                            <type>1</type>
+                                                            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="54">
+                                                              <id>7</id>
+                                                              <name>Start</name>
+                                                              <incomingConnections id="55"/>
+                                                              <outgoingConnections id="56">
+                                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="53"/>
+                                                              </outgoingConnections>
+                                                            </from>
+                                                            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="51"/>
+                                                          </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                        </incomingConnections>
+                                                        <outgoingConnections id="57">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="50"/>
+                                                        </outgoingConnections>
+                                                      </from>
+                                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="48"/>
+                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                  </incomingConnections>
+                                                  <outgoingConnections id="58">
+                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="59">
+                                                      <type>1</type>
+                                                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="48"/>
+                                                      <to class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" id="60">
+                                                        <constraint>Diagnose(  )</constraint>
+                                                        <id>12</id>
+                                                        <name>Wait for Diagnose</name>
+                                                        <incomingConnections id="61">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="59"/>
+                                                        </incomingConnections>
+                                                        <outgoingConnections id="62">
+                                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="63">
+                                                            <type>1</type>
+                                                            <from class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="60"/>
+                                                            <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="41"/>
+                                                          </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="64">
+                                          <name>Diagnose inconclusive</name>
+                                          <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
+                                          <priority>1</priority>
+                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                      </entry>
+                                      <entry>
+                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
+                                        <org.drools.ruleflow.core.impl.ConstraintImpl id="65">
+                                          <name>Diagnose complete</name>
+                                          <constraint>eval(true)</constraint>
+                                          <priority>2</priority>
+                                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                                      </entry>
+                                    </constraints>
+                                    <id>16</id>
+                                    <name>Diagnose complete?</name>
+                                    <incomingConnections id="66">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="63"/>
+                                    </incomingConnections>
+                                    <outgoingConnections id="67">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="43"/>
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="40"/>
+                                    </outgoingConnections>
+                                  </from>
+                                  <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="37"/>
+                                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                              </incomingConnections>
+                              <outgoingConnections id="68">
+                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="36"/>
+                              </outgoingConnections>
+                            </from>
+                            <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="8"/>
+                          </org.drools.ruleflow.core.impl.ConnectionImpl>
+                        </incomingConnections>
+                        <outgoingConnections id="69">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="10"/>
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
+                        </outgoingConnections>
+                      </from>
+                      <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="5"/>
+                    </org.drools.ruleflow.core.impl.ConnectionImpl>
+                  </incomingConnections>
+                  <outgoingConnections id="70">
+                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                  </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.SplitWrapper" id="74" serialization="custom">
+                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                            <default>
+                              <constraint id="75">
+                                <x>218</x>
+                                <y>364</y>
+                                <width>115</width>
+                                <height>40</height>
+                              </constraint>
+                              <element class="org.drools.ruleflow.core.impl.SplitImpl" 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"/>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="79" serialization="custom">
+                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                          <default>
+                                            <constraint id="80">
+                                              <x>237</x>
+                                              <y>293</y>
+                                              <width>77</width>
+                                              <height>40</height>
+                                            </constraint>
+                                            <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="37"/>
+                                            <incomingConnections id="81">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="82" serialization="custom">
+                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                  <default>
+                                                    <type>1</type>
+                                                    <bendpoints id="83"/>
+                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="84" serialization="custom">
+                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                        <default>
+                                                          <constraint id="85">
+                                                            <x>214</x>
+                                                            <y>225</y>
+                                                            <width>124</width>
+                                                            <height>32</height>
+                                                          </constraint>
+                                                          <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="41"/>
+                                                          <incomingConnections id="86">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="87" serialization="custom">
+                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                <default>
+                                                                  <type>1</type>
+                                                                  <bendpoints id="88"/>
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper" id="89" serialization="custom">
+                                                                    <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                      <default>
+                                                                        <constraint id="90">
+                                                                          <x>214</x>
+                                                                          <y>167</y>
+                                                                          <width>121</width>
+                                                                          <height>40</height>
+                                                                        </constraint>
+                                                                        <element class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="60"/>
+                                                                        <incomingConnections id="91">
+                                                                          <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.JoinWrapper" id="94" serialization="custom">
+                                                                                  <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                    <default>
+                                                                                      <constraint id="95">
+                                                                                        <x>269</x>
+                                                                                        <y>128</y>
+                                                                                        <width>11</width>
+                                                                                        <height>14</height>
+                                                                                      </constraint>
+                                                                                      <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="48"/>
+                                                                                      <incomingConnections id="96">
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="97" serialization="custom">
+                                                                                          <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                            <default>
+                                                                                              <type>1</type>
+                                                                                              <bendpoints id="98">
+                                                                                                <org.eclipse.draw2d.geometry.Point id="99">
+                                                                                                  <x>433</x>
+                                                                                                  <y>134</y>
+                                                                                                </org.eclipse.draw2d.geometry.Point>
+                                                                                              </bendpoints>
+                                                                                              <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="100" serialization="custom">
+                                                                                                <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                  <default>
+                                                                                                    <constraint id="101">
+                                                                                                      <x>360</x>
+                                                                                                      <y>165</y>
+                                                                                                      <width>147</width>
+                                                                                                      <height>40</height>
+                                                                                                    </constraint>
+                                                                                                    <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="44"/>
+                                                                                                    <incomingConnections id="102">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="103" serialization="custom">
+                                                                                                        <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                          <default>
+                                                                                                            <type>1</type>
+                                                                                                            <bendpoints id="104">
+                                                                                                              <org.eclipse.draw2d.geometry.Point id="105">
+                                                                                                                <x>433</x>
+                                                                                                                <y>240</y>
+                                                                                                              </org.eclipse.draw2d.geometry.Point>
+                                                                                                            </bendpoints>
+                                                                                                            <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="84"/>
+                                                                                                            <target class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" reference="100"/>
+                                                                                                          </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="43"/>
+                                                                                                          </default>
+                                                                                                        </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                      </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                    </incomingConnections>
+                                                                                                    <outgoingConnections id="106">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="97"/>
+                                                                                                    </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="94"/>
+                                                                                            </default>
+                                                                                          </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                            <default>
+                                                                                              <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="47"/>
+                                                                                            </default>
+                                                                                          </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                        </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="107" serialization="custom">
+                                                                                          <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                            <default>
+                                                                                              <type>1</type>
+                                                                                              <bendpoints id="108"/>
+                                                                                              <source class="org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper" id="109" serialization="custom">
+                                                                                                <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                  <default>
+                                                                                                    <constraint id="110">
+                                                                                                      <x>229</x>
+                                                                                                      <y>68</y>
+                                                                                                      <width>89</width>
+                                                                                                      <height>40</height>
+                                                                                                    </constraint>
+                                                                                                    <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="51"/>
+                                                                                                    <incomingConnections id="111">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="112" serialization="custom">
+                                                                                                        <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                          <default>
+                                                                                                            <type>1</type>
+                                                                                                            <bendpoints id="113"/>
+                                                                                                            <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="114" serialization="custom">
+                                                                                                              <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                                                <default>
+                                                                                                                  <constraint id="115">
+                                                                                                                    <x>235</x>
+                                                                                                                    <y>9</y>
+                                                                                                                    <width>80</width>
+                                                                                                                    <height>40</height>
+                                                                                                                  </constraint>
+                                                                                                                  <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="54"/>
+                                                                                                                  <incomingConnections id="116"/>
+                                                                                                                  <outgoingConnections id="117">
+                                                                                                                    <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="112"/>
+                                                                                                                  </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="109"/>
+                                                                                                          </default>
+                                                                                                        </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                          <default>
+                                                                                                            <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="53"/>
+                                                                                                          </default>
+                                                                                                        </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                      </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                                    </incomingConnections>
+                                                                                                    <outgoingConnections id="118">
+                                                                                                      <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="107"/>
+                                                                                                    </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="94"/>
+                                                                                            </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="50"/>
+                                                                                            </default>
+                                                                                          </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                        </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                                      </incomingConnections>
+                                                                                      <outgoingConnections id="119">
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="92"/>
+                                                                                      </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="89"/>
+                                                                              </default>
+                                                                            </org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                              <default>
+                                                                                <connection class="org.drools.ruleflow.core.impl.ConnectionImpl" reference="59"/>
+                                                                              </default>
+                                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                          </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                                        </incomingConnections>
+                                                                        <outgoingConnections id="120">
+                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="87"/>
+                                                                        </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="121">
+                                                                          <org.eclipse.ui.views.properties.TextPropertyDescriptor id="122">
+                                                                            <id class="string">Name</id>
+                                                                            <display>Name</display>
+                                                                            <incompatible>false</incompatible>
+                                                                          </org.eclipse.ui.views.properties.TextPropertyDescriptor>
+                                                                          <org.drools.eclipse.flow.ruleflow.view.property.constraint.MilestoneConstraintPropertyDescriptor id="123">
+                                                                            <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="124">
+                                                                              <nodes id="125">
+                                                                                <entry>
+                                                                                  <long>15</long>
+                                                                                  <org.drools.ruleflow.core.impl.JoinImpl reference="48"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>19</long>
+                                                                                  <org.drools.ruleflow.core.impl.SplitImpl reference="8"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>8</long>
+                                                                                  <org.drools.ruleflow.core.impl.EndNodeImpl reference="25"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>26</long>
+                                                                                  <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="5"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>23</long>
+                                                                                  <org.drools.ruleflow.core.impl.JoinImpl reference="15"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>11</long>
+                                                                                  <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="51"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>16</long>
+                                                                                  <org.drools.ruleflow.core.impl.SplitImpl reference="41"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>7</long>
+                                                                                  <org.drools.ruleflow.core.impl.StartNodeImpl reference="54"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>12</long>
+                                                                                  <org.drools.ruleflow.core.impl.MilestoneNodeImpl reference="60"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>27</long>
+                                                                                  <org.drools.ruleflow.core.impl.EndNodeImpl reference="31"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>17</long>
+                                                                                  <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="44"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>28</long>
+                                                                                  <org.drools.ruleflow.core.impl.ActionNodeImpl reference="37"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>29</long>
+                                                                                  <org.drools.ruleflow.core.impl.ActionNodeImpl reference="20"/>
+                                                                                </entry>
+                                                                                <entry>
+                                                                                  <long>25</long>
+                                                                                  <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="11"/>
+                                                                                </entry>
+                                                                              </nodes>
+                                                                              <variables id="126"/>
+                                                                              <lastNodeId>31</lastNodeId>
+                                                                              <imports id="127">
+                                                                                <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>
+                                                                            </process>
+                                                                            <milestone class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="60"/>
+                                                                            <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>
+                                                                  </source>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="84"/>
+                                                                </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="63"/>
+                                                                </default>
+                                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                            </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                                          </incomingConnections>
+                                                          <outgoingConnections id="128">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="103"/>
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="82"/>
+                                                          </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="79"/>
+                                                  </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="40"/>
+                                                  </default>
+                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                            </incomingConnections>
+                                            <outgoingConnections id="129">
+                                              <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>
+                                        <org.drools.eclipse.flow.ruleflow.core.ActionWrapper>
+                                          <default>
+                                            <descriptors id="130">
+                                              <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="122"/>
+                                              <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="131">
+                                                <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="124"/>
+                                                <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="37"/>
+                                                <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.SplitWrapper" 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="36"/>
+                                    </default>
+                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                              </incomingConnections>
+                              <outgoingConnections id="132">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="133" serialization="custom">
+                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                    <default>
+                                      <type>1</type>
+                                      <bendpoints id="134"/>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="74"/>
+                                      <target class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" id="135" serialization="custom">
+                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                          <default>
+                                            <constraint id="136">
+                                              <x>131</x>
+                                              <y>437</y>
+                                              <width>89</width>
+                                              <height>40</height>
+                                            </constraint>
+                                            <element class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="11"/>
+                                            <incomingConnections id="137">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="133"/>
+                                            </incomingConnections>
+                                            <outgoingConnections id="138">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="139" serialization="custom">
+                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                  <default>
+                                                    <type>1</type>
+                                                    <bendpoints id="140"/>
+                                                    <source class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" reference="135"/>
+                                                    <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" id="141" serialization="custom">
+                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                        <default>
+                                                          <constraint id="142">
+                                                            <x>218</x>
+                                                            <y>501</y>
+                                                            <width>13</width>
+                                                            <height>14</height>
+                                                          </constraint>
+                                                          <element class="org.drools.ruleflow.core.impl.JoinImpl" reference="15"/>
+                                                          <incomingConnections id="143">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="144" serialization="custom">
+                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                <default>
+                                                                  <type>1</type>
+                                                                  <bendpoints id="145"/>
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper" reference="3"/>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="141"/>
+                                                                </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="139"/>
+                                                          </incomingConnections>
+                                                          <outgoingConnections id="146">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="147" serialization="custom">
+                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                <default>
+                                                                  <type>1</type>
+                                                                  <bendpoints id="148"/>
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" reference="141"/>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="149" serialization="custom">
+                                                                    <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                      <default>
+                                                                        <constraint id="150">
+                                                                          <x>158</x>
+                                                                          <y>533</y>
+                                                                          <width>134</width>
+                                                                          <height>40</height>
+                                                                        </constraint>
+                                                                        <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="20"/>
+                                                                        <incomingConnections id="151">
+                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="147"/>
+                                                                        </incomingConnections>
+                                                                        <outgoingConnections id="152">
+                                                                          <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="153" serialization="custom">
+                                                                            <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                              <default>
+                                                                                <type>1</type>
+                                                                                <bendpoints id="154"/>
+                                                                                <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="149"/>
+                                                                                <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="155" serialization="custom">
+                                                                                  <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                                                    <default>
+                                                                                      <constraint id="156">
+                                                                                        <x>185</x>
+                                                                                        <y>595</y>
+                                                                                        <width>80</width>
+                                                                                        <height>40</height>
+                                                                                      </constraint>
+                                                                                      <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="25"/>
+                                                                                      <incomingConnections id="157">
+                                                                                        <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="153"/>
+                                                                                      </incomingConnections>
+                                                                                      <outgoingConnections id="158"/>
+                                                                                      <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>
+                                                                        </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="159">
+                                                                          <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="122"/>
+                                                                          <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="160">
+                                                                            <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="124"/>
+                                                                            <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="20"/>
+                                                                            <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="19"/>
+                                                                </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="14"/>
+                                                  </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="10"/>
+                                    </default>
+                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="72"/>
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="161" serialization="custom">
+                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                    <default>
+                                      <type>1</type>
+                                      <bendpoints id="162"/>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="74"/>
+                                      <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="163" serialization="custom">
+                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                          <default>
+                                            <constraint id="164">
+                                              <x>337</x>
+                                              <y>437</y>
+                                              <width>80</width>
+                                              <height>40</height>
+                                            </constraint>
+                                            <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="31"/>
+                                            <incomingConnections id="165">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="161"/>
+                                            </incomingConnections>
+                                            <outgoingConnections id="166"/>
+                                            <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="30"/>
+                                    </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.SubFlowWrapper" 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="167">
+                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="144"/>
+                </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.SubFlowWrapper>
+        </entry>
+        <entry>
+          <string>11-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="109"/>
+        </entry>
+        <entry>
+          <string>12-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.MilestoneWrapper reference="89"/>
+        </entry>
+        <entry>
+          <string>23-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="141"/>
+        </entry>
+        <entry>
+          <string>19-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="74"/>
+        </entry>
+        <entry>
+          <string>15-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper reference="94"/>
+        </entry>
+        <entry>
+          <string>29-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="149"/>
+        </entry>
+        <entry>
+          <string>27-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="163"/>
+        </entry>
+        <entry>
+          <string>7-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="114"/>
+        </entry>
+        <entry>
+          <string>16-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="84"/>
+        </entry>
+        <entry>
+          <string>25-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.SubFlowWrapper reference="135"/>
+        </entry>
+        <entry>
+          <string>28-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="79"/>
+        </entry>
+        <entry>
+          <string>17-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper reference="100"/>
+        </entry>
+        <entry>
+          <string>8-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="155"/>
+        </entry>
+      </elements>
+      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="124"/>
+      <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

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/ClinicalPathwayX.rfm	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,314 @@
+<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
+  <nodes id="2">
+    <entry>
+      <long>15</long>
+      <org.drools.ruleflow.core.impl.JoinImpl id="3">
+        <type>2</type>
+        <id>15</id>
+        <name></name>
+        <incomingConnections id="4">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="6">
+              <ruleFlowGroup>AdditionalExaminations</ruleFlowGroup>
+              <id>17</id>
+              <name>Additional Examinations</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>2</type>
+                    <constraints id="10">
+                      <entry>
+                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
+                        <org.drools.ruleflow.core.impl.ConstraintImpl id="11">
+                          <name>Diagnose inconclusive</name>
+                          <constraint>Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )</constraint>
+                          <priority>1</priority>
+                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                      </entry>
+                      <entry>
+                        <org.drools.ruleflow.core.impl.ConnectionImpl id="12">
+                          <type>1</type>
+                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
+                          <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="13">
+                            <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="14">
+                              <consequence>System.out.println(&quot;Notifying GP of patient of the diagnose.&quot;);</consequence>
+                            </action>
+                            <id>28</id>
+                            <name>Notify GP</name>
+                            <incomingConnections id="15">
+                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
+                            </incomingConnections>
+                            <outgoingConnections id="16">
+                              <org.drools.ruleflow.core.impl.ConnectionImpl id="17">
+                                <type>1</type>
+                                <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="13"/>
+                                <to class="org.drools.ruleflow.core.impl.SplitImpl" id="18">
+                                  <type>2</type>
+                                  <constraints id="19">
+                                    <entry>
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="20">
+                                        <type>1</type>
+                                        <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="18"/>
+                                        <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="21">
+                                          <processId>org.drools.examples.cdss.TreatmentX</processId>
+                                          <id>25</id>
+                                          <name>Treatment X</name>
+                                          <incomingConnections id="22">
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
+                                          </incomingConnections>
+                                          <outgoingConnections id="23">
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl id="24">
+                                              <type>1</type>
+                                              <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="21"/>
+                                              <to class="org.drools.ruleflow.core.impl.JoinImpl" id="25">
+                                                <type>2</type>
+                                                <id>23</id>
+                                                <name></name>
+                                                <incomingConnections id="26">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="27">
+                                                    <type>1</type>
+                                                    <from class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" id="28">
+                                                      <processId>org.drools.examples.cdss.TreatmentY</processId>
+                                                      <id>26</id>
+                                                      <name>Treatment Y</name>
+                                                      <incomingConnections id="29">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="30">
+                                                          <type>1</type>
+                                                          <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="18"/>
+                                                          <to class="org.drools.ruleflow.core.impl.SubFlowNodeImpl" reference="28"/>
+                                                        </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                      </incomingConnections>
+                                                      <outgoingConnections id="31">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
+                                                      </outgoingConnections>
+                                                    </from>
+                                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="25"/>
+                                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>
+                                                </incomingConnections>
+                                                <outgoingConnections id="32">
+                                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="33">
+                                                    <type>1</type>
+                                                    <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="25"/>
+                                                    <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="34">
+                                                      <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="35">
+                                                        <consequence>System.out.println(&quot;Scheduling follow-up of patient.&quot;);</consequence>
+                                                      </action>
+                                                      <id>29</id>
+                                                      <name>Schedule Follow-up</name>
+                                                      <incomingConnections id="36">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="33"/>
+                                                      </incomingConnections>
+                                                      <outgoingConnections id="37">
+                                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="38">
+                                                          <type>1</type>
+                                                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="34"/>
+                                                          <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="39">
+                                                            <id>8</id>
+                                                            <name>End</name>
+                                                            <incomingConnections id="40">
+                                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="38"/>
+                                                            </incomingConnections>
+                                                            <outgoingConnections id="41"/>
+                                                          </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="42">
+                                        <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="30"/>
+                                      <org.drools.ruleflow.core.impl.ConstraintImpl id="43">
+                                        <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="44">
+                                        <type>1</type>
+                                        <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="18"/>
+                                        <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="45">
+                                          <id>27</id>
+                                          <name>End</name>
+                                          <incomingConnections id="46">
+                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="44"/>
+                                          </incomingConnections>
+                                          <outgoingConnections id="47"/>
+                                        </to>
+                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                      <org.drools.ruleflow.core.impl.ConstraintImpl id="48">
+                                        <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="49">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="17"/>
+                                  </incomingConnections>
+                                  <outgoingConnections id="50">
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="30"/>
+                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="44"/>
+                                  </outgoingConnections>
+                                </to>
+                              </org.drools.ruleflow.core.impl.ConnectionImpl>
+                            </outgoingConnections>
+                          </to>
+                        </org.drools.ruleflow.core.impl.ConnectionImpl>
+                        <org.drools.ruleflow.core.impl.ConstraintImpl id="51">
+                          <name>Diagnose complete</name>
+                          <constraint>eval(true)</constraint>
+                          <priority>2</priority>
+                        </org.drools.ruleflow.core.impl.ConstraintImpl>
+                      </entry>
+                    </constraints>
+                    <id>16</id>
+                    <name>Diagnose complete?</name>
+                    <incomingConnections id="52">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl id="53">
+                        <type>1</type>
+                        <from class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" id="54">
+                          <constraint>Diagnose(  )</constraint>
+                          <id>12</id>
+                          <name>Wait for Diagnose</name>
+                          <incomingConnections id="55">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="56">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="3"/>
+                              <to class="org.drools.ruleflow.core.impl.MilestoneNodeImpl" reference="54"/>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                          </incomingConnections>
+                          <outgoingConnections id="57">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="53"/>
+                          </outgoingConnections>
+                        </from>
+                        <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="9"/>
+                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                    </incomingConnections>
+                    <outgoingConnections id="58">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
+                    </outgoingConnections>
+                  </from>
+                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="6"/>
+                </org.drools.ruleflow.core.impl.ConnectionImpl>
+              </incomingConnections>
+              <outgoingConnections id="59">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
+              </outgoingConnections>
+            </from>
+            <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="3"/>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="60">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="61">
+              <ruleFlowGroup>Examinations</ruleFlowGroup>
+              <id>11</id>
+              <name>Examinations</name>
+              <incomingConnections id="62">
+                <org.drools.ruleflow.core.impl.ConnectionImpl id="63">
+                  <type>1</type>
+                  <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="64">
+                    <id>7</id>
+                    <name>Start</name>
+                    <incomingConnections id="65"/>
+                    <outgoingConnections id="66">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="63"/>
+                    </outgoingConnections>
+                  </from>
+                  <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="61"/>
+                </org.drools.ruleflow.core.impl.ConnectionImpl>
+              </incomingConnections>
+              <outgoingConnections id="67">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="60"/>
+              </outgoingConnections>
+            </from>
+            <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="3"/>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+        </incomingConnections>
+        <outgoingConnections id="68">
+          <org.drools.ruleflow.core.impl.ConnectionImpl reference="56"/>
+        </outgoingConnections>
+      </org.drools.ruleflow.core.impl.JoinImpl>
+    </entry>
+    <entry>
+      <long>19</long>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="18"/>
+    </entry>
+    <entry>
+      <long>8</long>
+      <org.drools.ruleflow.core.impl.EndNodeImpl reference="39"/>
+    </entry>
+    <entry>
+      <long>26</long>
+      <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="28"/>
+    </entry>
+    <entry>
+      <long>23</long>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="25"/>
+    </entry>
+    <entry>
+      <long>11</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="61"/>
+    </entry>
+    <entry>
+      <long>16</long>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="9"/>
+    </entry>
+    <entry>
+      <long>7</long>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="64"/>
+    </entry>
+    <entry>
+      <long>12</long>
+      <org.drools.ruleflow.core.impl.MilestoneNodeImpl reference="54"/>
+    </entry>
+    <entry>
+      <long>27</long>
+      <org.drools.ruleflow.core.impl.EndNodeImpl reference="45"/>
+    </entry>
+    <entry>
+      <long>17</long>
+      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="6"/>
+    </entry>
+    <entry>
+      <long>28</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="13"/>
+    </entry>
+    <entry>
+      <long>29</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="34"/>
+    </entry>
+    <entry>
+      <long>25</long>
+      <org.drools.ruleflow.core.impl.SubFlowNodeImpl reference="21"/>
+    </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>
+</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/GenericRules.drl	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,26 @@
+package com.sample
+
+import org.drools.examples.cdss.Terminology;
+import org.drools.examples.cdss.data.Diagnose;
+import org.drools.examples.cdss.data.Patient;
+import org.drools.examples.cdss.data.Recommendation;
+import org.drools.examples.cdss.service.RecommendationService;
+
+global RecommendationService recommendationService
+
+rule "Start Clinical Pathway X if diagnosed"
+	when
+		d: Diagnose( type == Terminology.DIAGNOSE_X_TYPE_UNKNOWN )
+	then
+		retract(d);
+		drools.getWorkingMemory().startProcess(
+			"org.drools.examples.cdss.ClinicalPathwayX");
+end
+
+rule "Always do examination4 when patient older than 60"
+	when
+		Patient( age > 80 )
+	then
+		recommendationService.createRecommendation(
+			new Recommendation("Examination4"));
+end
\ No newline at end of file

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rf	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,175 @@
+<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>2-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper id="3" serialization="custom">
+            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+              <default>
+                <constraint id="4">
+                  <x>393</x>
+                  <y>101</y>
+                  <width>80</width>
+                  <height>40</height>
+                </constraint>
+                <element class="org.drools.ruleflow.core.impl.EndNodeImpl" id="5">
+                  <id>2</id>
+                  <name>End</name>
+                  <incomingConnections id="6">
+                    <org.drools.ruleflow.core.impl.ConnectionImpl id="7">
+                      <type>1</type>
+                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="8">
+                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="9">
+                          <consequence>System.out.println(&quot;Executing TreatmentX&quot;);</consequence>
+                        </action>
+                        <id>4</id>
+                        <name>Dummy TreatmentX</name>
+                        <incomingConnections id="10">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl id="11">
+                            <type>1</type>
+                            <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="12">
+                              <id>1</id>
+                              <name>Start</name>
+                              <incomingConnections id="13"/>
+                              <outgoingConnections id="14">
+                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>
+                              </outgoingConnections>
+                            </from>
+                            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                          </org.drools.ruleflow.core.impl.ConnectionImpl>
+                        </incomingConnections>
+                        <outgoingConnections id="15">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
+                        </outgoingConnections>
+                      </from>
+                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="5"/>
+                    </org.drools.ruleflow.core.impl.ConnectionImpl>
+                  </incomingConnections>
+                  <outgoingConnections id="16"/>
+                </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.ActionWrapper" id="20" serialization="custom">
+                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                            <default>
+                              <constraint id="21">
+                                <x>217</x>
+                                <y>101</y>
+                                <width>140</width>
+                                <height>40</height>
+                              </constraint>
+                              <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                              <incomingConnections id="22">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="23" serialization="custom">
+                                  <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                    <default>
+                                      <type>1</type>
+                                      <bendpoints id="24"/>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="25" serialization="custom">
+                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                          <default>
+                                            <constraint id="26">
+                                              <x>100</x>
+                                              <y>100</y>
+                                              <width>80</width>
+                                              <height>40</height>
+                                            </constraint>
+                                            <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="12"/>
+                                            <incomingConnections id="27"/>
+                                            <outgoingConnections id="28">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="23"/>
+                                            </outgoingConnections>
+                                          </default>
+                                        </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                      </source>
+                                      <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="20"/>
+                                    </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="11"/>
+                                    </default>
+                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                              </incomingConnections>
+                              <outgoingConnections id="29">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="18"/>
+                              </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="30">
+                                <org.eclipse.ui.views.properties.TextPropertyDescriptor id="31">
+                                  <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="32">
+                                  <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="33">
+                                    <nodes id="34">
+                                      <entry>
+                                        <long>2</long>
+                                        <org.drools.ruleflow.core.impl.EndNodeImpl reference="5"/>
+                                      </entry>
+                                      <entry>
+                                        <long>4</long>
+                                        <org.drools.ruleflow.core.impl.ActionNodeImpl reference="8"/>
+                                      </entry>
+                                      <entry>
+                                        <long>1</long>
+                                        <org.drools.ruleflow.core.impl.StartNodeImpl reference="12"/>
+                                      </entry>
+                                    </nodes>
+                                    <variables id="35"/>
+                                    <lastNodeId>4</lastNodeId>
+                                    <id>org.drools.examples.cdss.TreatmentX</id>
+                                    <name>TreatmentX</name>
+                                    <version>1.0</version>
+                                    <type>RuleFlow</type>
+                                  </process>
+                                  <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                                  <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.EndNodeWrapper" 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="36"/>
+                <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.EndNodeWrapper>
+        </entry>
+        <entry>
+          <string>4-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="20"/>
+        </entry>
+        <entry>
+          <string>1-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="25"/>
+        </entry>
+      </elements>
+      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="33"/>
+      <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

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentX.rfm	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,56 @@
+<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
+  <nodes id="2">
+    <entry>
+      <long>2</long>
+      <org.drools.ruleflow.core.impl.EndNodeImpl id="3">
+        <id>2</id>
+        <name>End</name>
+        <incomingConnections id="4">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="6">
+              <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="7">
+                <consequence>System.out.println(&quot;Executing TreatmentX&quot;);</consequence>
+              </action>
+              <id>4</id>
+              <name>Dummy TreatmentX</name>
+              <incomingConnections id="8">
+                <org.drools.ruleflow.core.impl.ConnectionImpl id="9">
+                  <type>1</type>
+                  <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="10">
+                    <id>1</id>
+                    <name>Start</name>
+                    <incomingConnections id="11"/>
+                    <outgoingConnections id="12">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="9"/>
+                    </outgoingConnections>
+                  </from>
+                  <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="6"/>
+                </org.drools.ruleflow.core.impl.ConnectionImpl>
+              </incomingConnections>
+              <outgoingConnections id="13">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
+              </outgoingConnections>
+            </from>
+            <to class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="3"/>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+        </incomingConnections>
+        <outgoingConnections id="14"/>
+      </org.drools.ruleflow.core.impl.EndNodeImpl>
+    </entry>
+    <entry>
+      <long>4</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="6"/>
+    </entry>
+    <entry>
+      <long>1</long>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="10"/>
+    </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>
+</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rf	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,499 @@
+<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>5-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.JoinWrapper id="3" serialization="custom">
+            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+              <default>
+                <constraint id="4">
+                  <x>411</x>
+                  <y>100</y>
+                  <width>39</width>
+                  <height>40</height>
+                </constraint>
+                <element class="org.drools.ruleflow.core.impl.JoinImpl" id="5">
+                  <type>1</type>
+                  <id>5</id>
+                  <name>AND</name>
+                  <incomingConnections id="6">
+                    <org.drools.ruleflow.core.impl.ConnectionImpl id="7">
+                      <type>1</type>
+                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="8">
+                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="9">
+                          <consequence>System.out.println(&quot;Executing TreatmentY Part1&quot;);</consequence>
+                        </action>
+                        <id>3</id>
+                        <name>Dummy TreatmentY Part1</name>
+                        <incomingConnections id="10">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl id="11">
+                            <type>1</type>
+                            <from class="org.drools.ruleflow.core.impl.SplitImpl" id="12">
+                              <type>1</type>
+                              <constraints id="13"/>
+                              <id>4</id>
+                              <name>AND</name>
+                              <incomingConnections id="14">
+                                <org.drools.ruleflow.core.impl.ConnectionImpl id="15">
+                                  <type>1</type>
+                                  <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="16">
+                                    <id>1</id>
+                                    <name>Start</name>
+                                    <incomingConnections id="17"/>
+                                    <outgoingConnections id="18">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>
+                                    </outgoingConnections>
+                                  </from>
+                                  <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>
+                                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                              </incomingConnections>
+                              <outgoingConnections id="19">
+                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>
+                                <org.drools.ruleflow.core.impl.ConnectionImpl id="20">
+                                  <type>1</type>
+                                  <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>
+                                  <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="21">
+                                    <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="22">
+                                      <consequence>System.out.println(&quot;Executing TreatmentY Part2&quot;);</consequence>
+                                    </action>
+                                    <id>6</id>
+                                    <name>Dummy TreatmentY Part2</name>
+                                    <incomingConnections id="23">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="20"/>
+                                    </incomingConnections>
+                                    <outgoingConnections id="24">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="25">
+                                        <type>1</type>
+                                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="21"/>
+                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="5"/>
+                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                    </outgoingConnections>
+                                  </to>
+                                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                <org.drools.ruleflow.core.impl.ConnectionImpl id="26">
+                                  <type>1</type>
+                                  <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>
+                                  <to 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 reference="26"/>
+                                    </incomingConnections>
+                                    <outgoingConnections id="30">
+                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="31">
+                                        <type>1</type>
+                                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="27"/>
+                                        <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="5"/>
+                                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                    </outgoingConnections>
+                                  </to>
+                                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                              </outgoingConnections>
+                            </from>
+                            <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                          </org.drools.ruleflow.core.impl.ConnectionImpl>
+                        </incomingConnections>
+                        <outgoingConnections id="32">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="7"/>
+                        </outgoingConnections>
+                      </from>
+                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="5"/>
+                    </org.drools.ruleflow.core.impl.ConnectionImpl>
+                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="25"/>
+                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>
+                  </incomingConnections>
+                  <outgoingConnections id="33">
+                    <org.drools.ruleflow.core.impl.ConnectionImpl id="34">
+                      <type>1</type>
+                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="5"/>
+                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="35">
+                        <id>2</id>
+                        <name>End</name>
+                        <incomingConnections id="36">
+                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>
+                        </incomingConnections>
+                        <outgoingConnections id="37"/>
+                      </to>
+                    </org.drools.ruleflow.core.impl.ConnectionImpl>
+                  </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>414</x>
+                            <y>62</y>
+                          </org.eclipse.draw2d.geometry.Point>
+                        </bendpoints>
+                        <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="42" serialization="custom">
+                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                            <default>
+                              <constraint id="43">
+                                <x>211</x>
+                                <y>43</y>
+                                <width>166</width>
+                                <height>40</height>
+                              </constraint>
+                              <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                              <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">
+                                        <org.eclipse.draw2d.geometry.Point id="47">
+                                          <x>170</x>
+                                          <y>63</y>
+                                        </org.eclipse.draw2d.geometry.Point>
+                                      </bendpoints>
+                                      <source class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" id="48" serialization="custom">
+                                        <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                          <default>
+                                            <constraint id="49">
+                                              <x>141</x>
+                                              <y>100</y>
+                                              <width>38</width>
+                                              <height>40</height>
+                                            </constraint>
+                                            <element class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>
+                                            <incomingConnections id="50">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="51" serialization="custom">
+                                                <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                  <default>
+                                                    <type>1</type>
+                                                    <bendpoints id="52"/>
+                                                    <source class="org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper" id="53" serialization="custom">
+                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                        <default>
+                                                          <constraint id="54">
+                                                            <x>34</x>
+                                                            <y>98</y>
+                                                            <width>80</width>
+                                                            <height>40</height>
+                                                          </constraint>
+                                                          <element class="org.drools.ruleflow.core.impl.StartNodeImpl" reference="16"/>
+                                                          <incomingConnections id="55"/>
+                                                          <outgoingConnections id="56">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="51"/>
+                                                          </outgoingConnections>
+                                                        </default>
+                                                      </org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                    </source>
+                                                    <target class="org.drools.eclipse.flow.ruleflow.core.SplitWrapper" reference="48"/>
+                                                  </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="15"/>
+                                                  </default>
+                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                            </incomingConnections>
+                                            <outgoingConnections id="57">
+                                              <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="45"/>
+                                              <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.SplitWrapper" reference="48"/>
+                                                    <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="60" serialization="custom">
+                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                        <default>
+                                                          <constraint id="61">
+                                                            <x>210</x>
+                                                            <y>98</y>
+                                                            <width>166</width>
+                                                            <height>40</height>
+                                                          </constraint>
+                                                          <element class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="21"/>
+                                                          <incomingConnections id="62">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="58"/>
+                                                          </incomingConnections>
+                                                          <outgoingConnections id="63">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="64" serialization="custom">
+                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                <default>
+                                                                  <type>1</type>
+                                                                  <bendpoints id="65"/>
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="60"/>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" 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="25"/>
+                                                                </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="66">
+                                                            <org.eclipse.ui.views.properties.TextPropertyDescriptor id="67">
+                                                              <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="68">
+                                                              <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" id="69">
+                                                                <nodes id="70">
+                                                                  <entry>
+                                                                    <long>2</long>
+                                                                    <org.drools.ruleflow.core.impl.EndNodeImpl reference="35"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>4</long>
+                                                                    <org.drools.ruleflow.core.impl.SplitImpl reference="12"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>6</long>
+                                                                    <org.drools.ruleflow.core.impl.ActionNodeImpl reference="21"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>1</long>
+                                                                    <org.drools.ruleflow.core.impl.StartNodeImpl reference="16"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>3</long>
+                                                                    <org.drools.ruleflow.core.impl.ActionNodeImpl reference="8"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>7</long>
+                                                                    <org.drools.ruleflow.core.impl.ActionNodeImpl reference="27"/>
+                                                                  </entry>
+                                                                  <entry>
+                                                                    <long>5</long>
+                                                                    <org.drools.ruleflow.core.impl.JoinImpl reference="5"/>
+                                                                  </entry>
+                                                                </nodes>
+                                                                <variables id="71"/>
+                                                                <lastNodeId>7</lastNodeId>
+                                                                <id>org.drools.examples.cdss.TreatmentY</id>
+                                                                <name>TreatmentY</name>
+                                                                <version>1.0</version>
+                                                                <type>RuleFlow</type>
+                                                              </process>
+                                                              <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="21"/>
+                                                              <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="20"/>
+                                                  </default>
+                                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                              </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                              <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="48"/>
+                                                    <target class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" id="75" serialization="custom">
+                                                      <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                                                        <default>
+                                                          <constraint id="76">
+                                                            <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="77">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="72"/>
+                                                          </incomingConnections>
+                                                          <outgoingConnections id="78">
+                                                            <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper id="79" serialization="custom">
+                                                              <org.drools.eclipse.flow.common.editor.core.ElementConnection>
+                                                                <default>
+                                                                  <type>1</type>
+                                                                  <bendpoints id="80">
+                                                                    <org.eclipse.draw2d.geometry.Point id="81">
+                                                                      <x>416</x>
+                                                                      <y>177</y>
+                                                                    </org.eclipse.draw2d.geometry.Point>
+                                                                  </bendpoints>
+                                                                  <source class="org.drools.eclipse.flow.ruleflow.core.ActionWrapper" reference="75"/>
+                                                                  <target class="org.drools.eclipse.flow.ruleflow.core.JoinWrapper" 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="31"/>
+                                                                </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="82">
+                                                            <org.eclipse.ui.views.properties.TextPropertyDescriptor reference="67"/>
+                                                            <org.drools.eclipse.flow.ruleflow.view.property.action.ActionPropertyDescriptor id="83">
+                                                              <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="69"/>
+                                                              <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>
+                                                    </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="26"/>
+                                                  </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.ActionWrapper" 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="11"/>
+                                    </default>
+                                  </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                                </org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper>
+                              </incomingConnections>
+                              <outgoingConnections id="84">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="39"/>
+                              </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="85">
+                                <org.eclipse.ui.views.properties.TextPropertyDescriptor id="86">
+                                  <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="87">
+                                  <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="69"/>
+                                  <actionNode class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="8"/>
+                                  <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="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>
+                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="64"/>
+                  <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="79"/>
+                </incomingConnections>
+                <outgoingConnections 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.JoinWrapper" reference="3"/>
+                        <target class="org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper" id="91" serialization="custom">
+                          <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>
+                            <default>
+                              <constraint id="92">
+                                <x>470</x>
+                                <y>98</y>
+                                <width>80</width>
+                                <height>40</height>
+                              </constraint>
+                              <element class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="35"/>
+                              <incomingConnections id="93">
+                                <org.drools.eclipse.flow.ruleflow.core.ConnectionWrapper reference="89"/>
+                              </incomingConnections>
+                              <outgoingConnections id="94"/>
+                              <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="34"/>
+                      </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.JoinWrapper>
+        </entry>
+        <entry>
+          <string>2-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.EndNodeWrapper reference="91"/>
+        </entry>
+        <entry>
+          <string>7-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="75"/>
+        </entry>
+        <entry>
+          <string>4-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.SplitWrapper reference="48"/>
+        </entry>
+        <entry>
+          <string>6-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="60"/>
+        </entry>
+        <entry>
+          <string>3-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.ActionWrapper reference="42"/>
+        </entry>
+        <entry>
+          <string>1-Wrapper</string>
+          <org.drools.eclipse.flow.ruleflow.core.StartNodeWrapper reference="53"/>
+        </entry>
+      </elements>
+      <process class="org.drools.ruleflow.core.impl.RuleFlowProcessImpl" reference="69"/>
+      <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

Added: 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	                        (rev 0)
+++ labs/jbossrules/trunk/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/cdss/TreatmentY.rfm	2007-08-19 23:50:03 UTC (rev 14374)
@@ -0,0 +1,145 @@
+<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">
+  <nodes id="2">
+    <entry>
+      <long>2</long>
+      <org.drools.ruleflow.core.impl.EndNodeImpl id="3">
+        <id>2</id>
+        <name>End</name>
+        <incomingConnections id="4">
+          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">
+            <type>1</type>
+            <from class="org.drools.ruleflow.core.impl.JoinImpl" id="6">
+              <type>1</type>
+              <id>5</id>
+              <name>AND</name>
+              <incomingConnections id="7">
+                <org.drools.ruleflow.core.impl.ConnectionImpl id="8">
+                  <type>1</type>
+                  <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="9">
+                    <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="10">
+                      <consequence>System.out.println(&quot;Executing TreatmentY Part1&quot;);</consequence>
+                    </action>
+                    <id>3</id>
+                    <name>Dummy TreatmentY Part1</name>
+                    <incomingConnections id="11">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl id="12">
+                        <type>1</type>
+                        <from class="org.drools.ruleflow.core.impl.SplitImpl" id="13">
+                          <type>1</type>
+                          <constraints id="14"/>
+                          <id>4</id>
+                          <name>AND</name>
+                          <incomingConnections id="15">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="16">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="17">
+                                <id>1</id>
+                                <name>Start</name>
+                                <incomingConnections id="18"/>
+                                <outgoingConnections id="19">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="16"/>
+                                </outgoingConnections>
+                              </from>
+                              <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="13"/>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                          </incomingConnections>
+                          <outgoingConnections id="20">
+                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="12"/>
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="21">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="13"/>
+                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="22">
+                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="23">
+                                  <consequence>System.out.println(&quot;Executing TreatmentY Part2&quot;);</consequence>
+                                </action>
+                                <id>6</id>
+                                <name>Dummy TreatmentY Part2</name>
+                                <incomingConnections id="24">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="21"/>
+                                </incomingConnections>
+                                <outgoingConnections id="25">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="26">
+                                    <type>1</type>
+                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="22"/>
+                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="6"/>
+                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                </outgoingConnections>
+                              </to>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                            <org.drools.ruleflow.core.impl.ConnectionImpl id="27">
+                              <type>1</type>
+                              <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="13"/>
+                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="28">
+                                <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="29">
+                                  <consequence>System.out.println(&quot;Executing TreatmentY Part3&quot;);</consequence>
+                                </action>
+                                <id>7</id>
+                                <name>Dummy TreatmentY Part3</name>
+                                <incomingConnections id="30">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="27"/>
+                                </incomingConnections>
+                                <outgoingConnections id="31">
+                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="32">
+                                    <type>1</type>
+                                    <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="28"/>
+                                    <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="6"/>
+                                  </org.drools.ruleflow.core.impl.ConnectionImpl>
+                                </outgoingConnections>
+                              </to>
+                            </org.drools.ruleflow.core.impl.ConnectionImpl>
+                          </outgoingConnections>
+                        </from>
+                        <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="9"/>
+                      </org.drools.ruleflow.core.impl.ConnectionImpl>
+                    </incomingConnections>
+                    <outgoingConnections id="33">
+                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>
+                    </outgoingConnections>
+                  </from>
+                  <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="6"/>
+                </org.drools.ruleflow.core.impl.ConnectionImpl>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="26"/>
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="32"/>
+              </incomingConnections>
+              <outgoingConnections id="34">
+                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>
+              </outgoingConnections>
+            </from>
+            <to class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="3"/>
+          </org.drools.ruleflow.core.impl.ConnectionImpl>
+        </incomingConnections>
+        <outgoingConnections id="35"/>
+      </org.drools.ruleflow.core.impl.EndNodeImpl>
+    </entry>
+    <entry>
+      <long>4</long>
+      <org.drools.ruleflow.core.impl.SplitImpl reference="13"/>
+    </entry>
+    <entry>
+      <long>6</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="22"/>
+    </entry>
+    <entry>
+      <long>1</long>
+      <org.drools.ruleflow.core.impl.StartNodeImpl reference="17"/>
+    </entry>
+    <entry>
+      <long>3</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="9"/>
+    </entry>
+    <entry>
+      <long>7</long>
+      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="28"/>
+    </entry>
+    <entry>
+      <long>5</long>
+      <org.drools.ruleflow.core.impl.JoinImpl reference="6"/>
+    </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>
+</org.drools.ruleflow.core.impl.RuleFlowProcessImpl>
\ No newline at end of file




More information about the jboss-svn-commits mailing list