Mercurial > dive4elements > gnv-client
diff gnv-artifacts/doc/conf/products/horizontalprofile/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 | ca5162aa644d |
line wrap: on
line diff
--- a/gnv-artifacts/doc/conf/products/horizontalprofile/conf_mesh.xml Tue Dec 08 11:18:27 2009 +0000 +++ b/gnv-artifacts/doc/conf/products/horizontalprofile/conf_mesh.xml Tue Dec 08 13:38:21 2009 +0000 @@ -6,23 +6,28 @@ <dataname>areaid</dataname> <data-multiselect>false</data-multiselect> <data-noselect>true</data-noselect> - <reachablestates> - <state>horizontalprofile_mesh_subarea</state> - <state>horizontalprofile_mesh_without_geom</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> <inputvalue name="areaid" type="Integer" multiselect="false" usedinquery="0"/> </inputvalues> </state> + + <transition transition="de.intevation.gnv.transition.ValueCompareTransition"> + <from state="horizontalprofile_mesh_area"/> + <to state="horizontalprofile_mesh_subarea"/> + <condition inputvalue="areaid" value="n/n" operator="notequal"/> + </transition> + <transition transition="de.intevation.gnv.transition.ValueCompareTransition"> + <from state="horizontalprofile_mesh_area"/> + <to state="horizontalprofile_mesh_without_geom"/> + <condition inputvalue="areaid" value="n/n" operator="equal"/> + </transition> + <state id="horizontalprofile_mesh_subarea" description="horizontalprofile_mesh_subaera" state="de.intevation.gnv.state.DefaultState"> <queryID>subarea_filter</queryID> <dataname>subareaid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="0"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -31,27 +36,31 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_subarea"/> + <to state="horizontalprofile_mesh"/> + </transition> + <state id="horizontalprofile_mesh_without_geom" description="horizontalprofile_mesh_without_geom" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_mesh</queryID> <dataname>meshid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_coordinate</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="0"/> </inputvalues> - </state> + </state> + + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_without_geom"/> + <to state="horizontalprofile_mesh_coordinate"/> + </transition> <state id="horizontalprofile_mesh" description="horizontalprofile_mesh" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_mesh_with_area</queryID> <dataname>meshid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_coordinate</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -60,12 +69,14 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh"/> + <to state="horizontalprofile_mesh_coordinate"/> + </transition> + <state id="horizontalprofile_mesh_coordinate" description="horizontalprofile_mesh_coordinate" state="de.intevation.gnv.state.SingleInputState"> <dataname>mesh_coordinate</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_point</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -73,13 +84,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_coordinate"/> + <to state="horizontalprofile_mesh_point"/> + </transition> + <state id="horizontalprofile_mesh_point" description="horizontalprofile_mesh_point" state="de.intevation.gnv.state.CoordinateSelectionState"> <queryID>verticalprofile_mesh_point</queryID> <dataname>mesh_point</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_axis</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false"/> <inputvalue name="mesh_coordinate" type="Coordinate" multiselect="false"/> @@ -87,12 +100,15 @@ <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="0"/> </inputvalues> </state> - <state id="horizontalprofile_mesh_axis" description="horizontalprofile_mesh_point" state="de.intevation.gnv.state.profile.horizontal.NorthSouthEastWestState"> + + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_point"/> + <to state="horizontalprofile_mesh_axis"/> + </transition> + + <state id="horizontalprofile_mesh_axis" description="horizontalprofile_mesh_point" state="de.intevation.gnv.state.profile.horizontal.NorthSouthEastWestState"> <dataname>axisid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>horizontalprofile_meshpoint_parameter</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false"/> <inputvalue name="mesh_point" type="Integer" multiselect="false"/> @@ -100,13 +116,16 @@ <inputvalue name="axisid" type="AttributeName" multiselect="false" usedinquery="0"/> </inputvalues> </state> + + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_axis"/> + <to state="horizontalprofile_meshpoint_parameter"/> + </transition> + <state id="horizontalprofile_meshpoint_parameter" description="horizontalprofile_meshpoint_parameter" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_mesh_parameter</queryID> <dataname>parameterid</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>horizontalprofile_meshpoint_depth</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="0"/> @@ -116,14 +135,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_meshpoint_parameter"/> + <to state="horizontalprofile_meshpoint_depth"/> + </transition> <state id="horizontalprofile_meshpoint_depth" description="horizontalprofile_meshpoint_depth" state="de.intevation.gnv.state.DefaultState"> <queryID>horizontalprofile_meshpoint_depth</queryID> <dataname>depthid</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_date</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="2"/> @@ -134,13 +154,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_meshpoint_depth"/> + <to state="horizontalprofile_mesh_date"/> + </transition> + <state id="horizontalprofile_mesh_date" description="horizontalprofile_mesh_date" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_mesh_date</queryID> <dataname>dateid</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>horizontalprofile_mesh_calculate_results</state> - </reachablestates> <inputvalues> <inputvalue name="meshid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="mesh_point" type="Integer" multiselect="false" usedinquery="0"/> @@ -152,6 +174,11 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="horizontalprofile_mesh_date"/> + <to state="horizontalprofile_mesh_calculate_results"/> + </transition> + <state id="horizontalprofile_mesh_calculate_results" description="horizontalprofile_mesh_calculate_results" state="de.intevation.gnv.state.profile.horizontal.HorizontalProfileOutputState"> <queryID>horizontalprofile_mesh_chart_data</queryID> <queryID-odv>horizontalprofile_mesh_odv_data</queryID-odv>