changeset 743:a4b66195d55a

Modified the Workflow of Product Layer for Contis and Nauthis that the Data that was sent by the Mapviewer-Interface take effect. gnv-artifacts/trunk@782 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 16 Mar 2010 08:51:50 +0000
parents cae93c709548
children 6290ab85782b
files gnv-artifacts/ChangeLog gnv-artifacts/doc/conf/products/layer/conf.xml
diffstat 2 files changed, 30 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Tue Mar 16 08:50:13 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Tue Mar 16 08:51:50 2010 +0000
@@ -1,3 +1,10 @@
+2010-03-16  Tim Englich  <tim.englich@intevation.de>
+
+	* doc/conf/products/layer/conf.xml: 
+	  Modified the Workflow so that the Inputvalues of the Mapviewer-Interface 
+	  take affect. E.g. The Regionfilter will not be displaied if an Polygon
+	  was send by the Mapviewer.
+
 2010-03-16  Tim Englich  <tim.englich@intevation.de>
 
 	* src/main/java/de/intevation/gnv/state/layer/LayerOutputState.java (fetchData): 
--- a/gnv-artifacts/doc/conf/products/layer/conf.xml	Tue Mar 16 08:50:13 2010 +0000
+++ b/gnv-artifacts/doc/conf/products/layer/conf.xml	Tue Mar 16 08:51:50 2010 +0000
@@ -1,6 +1,28 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <artifact name="layer">
     <states>
+
+        <state id="layer_mapviewerswitch" description="layer_mesh_area_one" state="de.intevation.gnv.state.DefaultAutoResumeState">
+            <!-- Empty State which will be used to integrate the switch for a 
+                 standalone and an mapviewer based call. -->
+            <inputvalues>
+                <inputvalue name="sourceid" type="String" multiselect="false" usedinquery="0"/>
+                <inputvalue name="fisname" type="String" multiselect="false" usedinquery="0"/>
+            </inputvalues>
+        </state>
+        
+        <transition transition="de.intevation.gnv.transition.PresettingsValueCompareTransition">
+            <from state="layer_mapviewerswitch"/>
+            <to state="layer_area"/>
+            <condition inputvalue="geometry" value="POLYGON" operator="notequal"/>
+        </transition>
+        
+        <transition transition="de.intevation.gnv.transition.PresettingsValueCompareTransition">
+            <from state="layer_mapviewerswitch"/>
+            <to state="layer"/>
+            <condition inputvalue="geometry" value="POLYGON" operator="equal"/>
+        </transition>
+        
         <state id="layer_area" description="layer_area_one" state="de.intevation.gnv.state.DefaultState">
             <queryID>area_filter</queryID>
             <dataname>areaid</dataname>
@@ -70,7 +92,7 @@
             </outputsModes>
         </state>
          
-          <state id="layer" description="layer" state="de.intevation.gnv.state.DefaultState">
+        <state id="layer" description="layer" state="de.intevation.gnv.state.DefaultState">
              <queryID>layer</queryID>
              <dataname>layerid</dataname>
              <data-multiselect>false</data-multiselect>

http://dive4elements.wald.intevation.org