Mercurial > dive4elements > gnv-client
diff gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.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 | 62fc63d0f71d |
line wrap: on
line diff
--- a/gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.xml Tue Dec 08 11:18:27 2009 +0000 +++ b/gnv-artifacts/doc/conf/products/verticalprofile/conf_timeseriespoint.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>verticalprofile_subarea</state> - <state>verticalprofile_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="verticalprofile_area"/> + <to state="verticalprofile_subarea"/> + <condition inputvalue="areaid" value="n/n" operator="notequal"/> + </transition> + <transition transition="de.intevation.gnv.transition.ValueCompareTransition"> + <from state="verticalprofile_area"/> + <to state="verticalprofile_without_geom"/> + <condition inputvalue="areaid" value="n/n" operator="equal"/> + </transition> + <state id="verticalprofile_subarea" description="verticalprofile_subaera" state="de.intevation.gnv.state.DefaultState"> <queryID>subarea_filter</queryID> <dataname>subareaid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>verticalprofile_timeseriespoint</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="verticalprofile_subarea"/> + <to state="verticalprofile_timeseriespoint"/> + </transition> + <state id="verticalprofile_without_geom" description="verticalprofile_without_geom" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_point</queryID> <dataname>featureid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>verticalprofile_parameter</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -46,13 +52,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="verticalprofile_without_geom"/> + <to state="verticalprofile_parameter"/> + </transition> + <state id="verticalprofile_timeseriespoint" description="timeseries_timeseriespoint" state="de.intevation.gnv.state.DefaultState"> <queryID>timeseries_timeseriespoint_with_area</queryID> <dataname>featureid</dataname> <data-multiselect>false</data-multiselect> - <reachablestates> - <state>verticalprofile_parameter</state> - </reachablestates> <inputvalues> <inputvalue name="sourceid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -61,13 +69,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="verticalprofile_timeseriespoint"/> + <to state="verticalprofile_parameter"/> + </transition> + <state id="verticalprofile_parameter" description="timeseries_parameter" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_parameter</queryID> <dataname>parameterid</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>verticalprofile_date</state> - </reachablestates> <inputvalues> <inputvalue name="featureid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/> @@ -75,13 +85,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="verticalprofile_parameter"/> + <to state="verticalprofile_date"/> + </transition> + <state id="verticalprofile_date" description="verticalprofile_date" state="de.intevation.gnv.state.DefaultState"> <queryID>verticalprofile_date</queryID> <dataname>dateid</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>verticalprofile_minmaxdepth</state> - </reachablestates> <inputvalues> <inputvalue name="featureid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="parameterid" type="Integer" multiselect="true" usedinquery="1"/> @@ -90,13 +102,15 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="verticalprofile_date"/> + <to state="verticalprofile_minmaxdepth"/> + </transition> + <state id="verticalprofile_minmaxdepth" description="verticalprofile_minmaxdepth" state="de.intevation.gnv.state.MinMaxState"> <queryID>verticalprofile_minmaxdepth</queryID> <dataname>depthrange</dataname> <data-multiselect>true</data-multiselect> - <reachablestates> - <state>verticalprofile_calculate_results</state> - </reachablestates> <inputvalues> <inputvalue name="featureid" type="Integer" multiselect="false" usedinquery="1"/> <inputvalue name="parameterid" type="Integer" multiselect="true" usedinquery="1"/> @@ -107,6 +121,11 @@ </inputvalues> </state> + <transition transition="de.intevation.gnv.transition.DefaultTransition"> + <from state="verticalprofile_minmaxdepth"/> + <to state="verticalprofile_calculate_results"/> + </transition> + <state id="verticalprofile_calculate_results" description="verticalprofile_calculate_results" state="de.intevation.gnv.state.profile.vertical.VerticalProfileOutputState"> <queryID>verticalprofile_chart_data</queryID> <queryID-odv>verticalprofile_odv_data</queryID-odv>