diff gnv-artifacts/doc/conf/products/horizontalcrosssection/conf_mesh.xml @ 337:a887074460b6

Last Step of the Refactoring Work on the Transition Model. Splitted Businesslogic between States and Transitions. Splitted the ConfigurationElements of State and Transition in several XML-Fragments. gnv-artifacts/trunk@403 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 08 Dec 2009 13:38:21 +0000
parents e964a3d8f7bc
children 9c2767fcb388
line wrap: on
line diff
--- a/gnv-artifacts/doc/conf/products/horizontalcrosssection/conf_mesh.xml	Tue Dec 08 11:18:27 2009 +0000
+++ b/gnv-artifacts/doc/conf/products/horizontalcrosssection/conf_mesh.xml	Tue Dec 08 13:38:21 2009 +0000
@@ -6,10 +6,6 @@
             <dataname>areaid</dataname>
             <data-multiselect>false</data-multiselect>
              <data-noselect>true</data-noselect>
-            <reachablestates>
-                   <state>horizontalcrosssection_subarea</state>
-                   <state>horizontalcrosssection_mesh_without_geom</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
@@ -17,13 +13,21 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
+            <from state="horizontalcrosssection_area"/>
+            <to state="horizontalcrosssection_subarea"/>
+            <condition inputvalue="areaid" value="n/n" operator="notequal"/>
+        </transition>
+        <transition transition="de.intevation.gnv.transition.ValueCompareTransition">
+            <from state="horizontalcrosssection_area"/>
+            <to state="horizontalcrosssection_mesh_without_geom"/>
+            <condition inputvalue="areaid" value="n/n" operator="equal"/>
+        </transition>
+        
         <state id="horizontalcrosssection_subarea" description="horizontalcrosssection_area_one" state="de.intevation.gnv.state.DefaultState">
             <queryID>subarea_filter</queryID>
             <dataname>subareaid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                   <state>horizontalcrosssection_mesh</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/>
                 <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
@@ -32,13 +36,15 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_subarea"/>
+            <to state="horizontalcrosssection_mesh"/>
+        </transition>
+        
         <state id="horizontalcrosssection_mesh_without_geom" description="horizontalcrosssection_mesh" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh</queryID>
             <dataname>meshid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                   <state>horizontalcrosssection_meshpoint_depth</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="subareaid" type="Integer" multiselect="false" usedinquery="0"/>
                 <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/>
@@ -47,13 +53,15 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_mesh_without_geom"/>
+            <to state="horizontalcrosssection_meshpoint_depth"/>
+        </transition>
+        
         <state id="horizontalcrosssection_mesh" description="horizontalcrosssection_mesh" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh_with_area</queryID>
             <dataname>meshid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                   <state>horizontalcrosssection_meshpoint_depth</state>
-            </reachablestates>
             <inputvalues>
                 <inputvalue name="subareaid" type="Integer" multiselect="false" usedinquery="0"/>
                 <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/>
@@ -62,27 +70,31 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_mesh"/>
+            <to state="horizontalcrosssection_meshpoint_depth"/>
+        </transition>
+        
         <state id="horizontalcrosssection_meshpoint_depth" description="horizontalcrosssection_meshpoint_depth" state="de.intevation.gnv.state.DefaultState">
             <queryID>horizontalcrosssection_meshpoint_depth</queryID>
             <dataname>depthid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                <state>horizontalcrosssection_meshpoint_parameter</state>
-            </reachablestates>
             <inputvalues>
                  <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                  <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
                  <inputvalue name="depthid" type="Integer" multiselect="false" usedinquery="0"/>
             </inputvalues>
         </state>
-
+        
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_meshpoint_depth"/>
+            <to state="horizontalcrosssection_meshpoint_parameter"/>
+        </transition>
+        
         <state id="horizontalcrosssection_meshpoint_parameter" description="horizontalcrosssection_meshpoint_parameter" state="de.intevation.gnv.state.DefaultState">
             <queryID>verticalprofile_mesh_parameter</queryID>
             <dataname>parameterid</dataname>
             <data-multiselect>false</data-multiselect>
-            <reachablestates>
-                <state>horizontalcrosssection_mesh_date</state>
-            </reachablestates>
             <inputvalues>
                  <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                  <inputvalue name="depthid" type="Integer" multiselect="false" usedinquery="0"/>
@@ -91,13 +103,15 @@
             </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_meshpoint_parameter"/>
+            <to state="horizontalcrosssection_mesh_date"/>
+        </transition>
+        
         <state id="horizontalcrosssection_mesh_date" description="horizontalcrosssection_mesh_date" state="de.intevation.gnv.state.DefaultState">
            <queryID>horizontalcrosssection_mesh_date</queryID>
            <dataname>dateid</dataname>
            <data-multiselect>false</data-multiselect>
-           <reachablestates>
-                <state>horizontalcrosssection_mesh_calculate_results</state>
-           </reachablestates>
            <inputvalues>
                <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/>
                <inputvalue name="depthid" type="Integer" multiselect="false" usedinquery="0"/>
@@ -107,6 +121,11 @@
            </inputvalues>
         </state>
         
+        <transition transition="de.intevation.gnv.transition.DefaultTransition">
+            <from state="horizontalcrosssection_mesh_date"/>
+            <to state="horizontalcrosssection_mesh_calculate_results"/>
+        </transition>
+        
         <state id="horizontalcrosssection_mesh_calculate_results" description="horizontalcrosssection_mesh_calculate_results" state="de.intevation.gnv.state.profile.horizontalcrosssection.HorizontalCrossSectionMeshOutputState">
             <queryID>horizontalcrosssection_mesh_data</queryID>
             <queryID-odv>horizontalcrosssection_mesh_odv_data</queryID-odv>

http://dive4elements.wald.intevation.org