diff artifacts/doc/conf/artifacts/bundu.xml @ 9366:3d006afee054

bundu.bezugswst workflow reviewed
author gernotbelger
date Thu, 02 Aug 2018 15:06:22 +0200
parents ddcd52d239cd
children a9e6b0a75bde
line wrap: on
line diff
--- a/artifacts/doc/conf/artifacts/bundu.xml	Thu Aug 02 15:02:27 2018 +0200
+++ b/artifacts/doc/conf/artifacts/bundu.xml	Thu Aug 02 15:06:22 2018 +0200
@@ -309,33 +309,40 @@
 
 
     <!-- Bezugswasserstände bezugswst -->
+    <!-- clone, otherwise conditions won't work -->
+    <state id="state.bundu.wst.location" description="state.bundu.wst.location" helpText="help.state.bundu.location" state="org.dive4elements.river.artifacts.states.fixation.LocationSelect">
+      <data name="ld_from" type="Double" />
+      <data name="ld_to" type="Double" />
+      <data name="ld_step" type="Double" />
+    </state>
+
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
       <from state="state.bundu.calculation.mode" />
-      <to state="state.bundu.location" />
+      <to state="state.bundu.wst.location" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.location" />
-      <to state="state.bundu.yearselect" />
+      <from state="state.bundu.wst.location" />
+      <to state="state.bundu.wst.yearselect" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
 
 
-    <state id="state.bundu.yearselect" helpText="state.bundu.yearselect" description="state.bundu.yearselect" state="org.dive4elements.river.artifacts.bundu.bezugswst.FixationPeriod">
+    <state id="state.bundu.wst.yearselect" helpText="help.state.bundu.wst.yearselect" description="state.bundu.wst.yearselect" state="org.dive4elements.river.artifacts.bundu.bezugswst.FixationPeriod">
       <data name="singleyear" type="String" />
       <data name="events_temp" type="String" /> <!-- String. -->
     </state>
 
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.yearselect" />
-      <to state="state.bundu.fixationchoice" />
+      <from state="state.bundu.wst.yearselect" />
+      <to state="state.bundu.wst.fixationchoice" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
 
-    <state id="state.bundu.fixationchoice" helpText="state.bundu.fixationchoice" description="state.bundu.fixationchoice" state="org.dive4elements.river.artifacts.bundu.bezugswst.FixationChoice">
+    <state id="state.bundu.wst.fixationchoice" helpText="help.state.bundu.wst.fixationchoice" description="state.bundu.wst.fixationchoice" state="org.dive4elements.river.artifacts.bundu.bezugswst.FixationChoice">
       <data name="fix_choice" type="String" />
       <data name="q1" type="Integer" />
       <data name="q2" type="Integer" /> <!-- necessary, because they will be set automatically -->
@@ -348,30 +355,36 @@
 
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.fixationchoice" />
+      <from state="state.bundu.wst.fixationchoice" />
       <to state="state.bundu.wst.fix.load.year_length" />
-      <condition data="fix_choice" value="state.bundu.fix.auto" operator="equal" />
+      <condition data="fix_choice" value="state.bundu.wst.fix.auto" operator="equal" />
     </transition>
 
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.fixationchoice" />
-      <to state="state.bundu.gaugerange" />
-      <condition data="fix_choice" value="state.bundu.fix.manual" operator="equal" />
+      <from state="state.bundu.wst.fixationchoice" />
+      <to state="state.bundu.wst.gaugerange" />
+      <condition data="fix_choice" value="state.bundu.wst.fix.manual" operator="equal" />
     </transition>
 
-
-
+    <state id="state.bundu.wst.gaugerange" description="state.bundu.wst.gaugerange" helpText="help.state.bundu.gaugerange" state="org.dive4elements.river.artifacts.states.fixation.GaugeRange">
+      <data name="q1" type="Integer" />
+      <data name="q2" type="Integer" />
+    </state>
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.gaugerange" />
-      <to state="state.bundu.eventselect" />
+      <from state="state.bundu.wst.gaugerange" />
+      <to state="state.bundu.wst.eventselect" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
 
+    <!-- clone; conditions... -->
+    <state id="state.bundu.wst.eventselect" description="state.bundu.wst.eventselect" helpText="help.state.bundu.eventselect" state="org.dive4elements.river.artifacts.states.fixation.EventSelect">
+      <data name="events" type="intarray" />
+    </state>
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.eventselect" />
+      <from state="state.bundu.wst.eventselect" />
       <to state="state.bundu.wst.fix.load.year_length" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
@@ -409,14 +422,14 @@
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
       <from state="state.bundu.wst.load.calc_choice" />
       <to state="state.bundu.wst.load.function" />
-      <condition data="calc_choice" value="state.bundu.calc.manual" operator="equal" />
+      <condition data="calc_choice" value="state.bundu.wst.calc.manual" operator="equal" />
     </transition>
 
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
       <from state="state.bundu.wst.load.calc_choice" />
       <to state="state.bundu.wst.load.preprocessing" />
-      <condition data="calc_choice" value="state.bundu.calc.auto" operator="equal" />
+      <condition data="calc_choice" value="state.bundu.wst.calc.auto" operator="equal" />
     </transition>
 
     <state id="state.bundu.wst.load.function" helpText="state.bundu.wst.load.function" description="state.bundu.wst.load.function" state="org.dive4elements.river.artifacts.states.fixation.FunctionSelect">
@@ -446,7 +459,7 @@
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
       <from state="state.bundu.wst.load.missing_volume" />
-      <to state="state.bundu.load.distance_only_part" />
+      <to state="state.bundu.wst.load.distance_only_part" />
       <condition data="missing_volume" value="true" operator="equal" />
     </transition>
 
@@ -456,14 +469,14 @@
       <condition data="missing_volume" value="false" operator="equal" />
     </transition>
 
-    <state id="state.bundu.load.distance_only_part" description="state.bundu.load.distance_only_part" state="org.dive4elements.river.artifacts.bundu.bezugswst.DistanceOnlyPartMissVolumeSelect" helpText="help.state.bundu.distance_only">
+    <state id="state.bundu.wst.load.distance_only_part" description="state.bundu.wst.load.distance_only_part" state="org.dive4elements.river.artifacts.bundu.bezugswst.DistanceOnlyPartMissVolumeSelect" helpText="help.state.bundu.distance_only">
       <data name="ld_from_part" type="Double" />
       <data name="ld_to_part" type="Double" />
     </state>
 
 
     <transition transition="org.dive4elements.river.artifacts.transitions.ValueCompareTransition">
-      <from state="state.bundu.load.distance_only_part" />
+      <from state="state.bundu.wst.load.distance_only_part" />
       <to state="state.bundu.wst.soundings" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
@@ -477,20 +490,20 @@
       <to state="state.bundu.wst" />
       <condition data="calculation_mode" value="bundu_bezugswst" operator="equal" />
     </transition>
- 
+
 
 
     <state id="state.bundu.wst" helpText="state.bundu.wst" description="state.bundu.wst" state="org.dive4elements.river.artifacts.bundu.bezugswst.BezugswstState">
       <outputmodes>
-    
+
         <outputmode name="bundu_wst_export" description="output.fix_waterlevel_export" mine-type="text/plain" type="export">
           <facets>
-            <facet name="csv" description="facet.waterlevel_export.csv" /> 
+            <facet name="csv" description="facet.waterlevel_export.csv" />
             <facet name="pdf" description="facet.waterlevel_export.pdf" />
           </facets>
         </outputmode>
-          
-      
+
+
       </outputmodes>
     </state>
 

http://dive4elements.wald.intevation.org