...
The workflow below runs seven moduleInstances. If the first moduleInstance fails in this example all other processing is stopped. If any of the other activities fail the processing will continue.
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<workflow version="1.1" xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews
http://fews.wldelft.nl/schemas/version1.0/workflow.xsd">
<activity>
<runIndependent>false</runIndependent>
<moduleInstanceId>Astronomical</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>BackupPrecipitation_Forecast</moduleInstanceId>
</activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>PrecipitationGaugeToGrid_Forecast</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Spatial_Interpolation_Precipitation_Forecast</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>MergePrecipitation_Forecast</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>GridToCatchments_Forecast</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Singapore_Sobek_Forecast</moduleInstanceId>
</activity>
</workflow>
|
The example below is more complex and includes several modules that are run in ensemble mode.
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<workflow xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wldelft.nl/fews
http://fews.wldelft.nl/schemas/version1.0/workflow.xsd" version="1.1">
<!--Run Rhein Interpolation -->
<activity>
<runIndependent>true</runIndependent>
<workflowId>Rhein_Interpolate</workflowId>
</activity>
<!--Spatial interpolation from grid to HBV-centroids-->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Rhein_SpatialInterpolationCOSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Aggregate forecast data for display -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Rhein_AggregateForecast_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Disaggregate timeseries at HBV-centroids -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Rhein_DisaggregateSeriesCOSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Merge timeseries from historical run and forecast run -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>HBV_Rhein_Merge_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Aggregate inputs for display -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>HBV_Rhein_AggregateInputs_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Interpolate timeseries from historical run and forecast run -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>HBV_Rhein_Interpolate_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Run HBV-model for forecast period-->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>HBV_Rhein_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Run ErrorModule for forecast period-->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>HBV_Rhein_AR_COSMO-LEPS</moduleInstanceId>
<ensemble>
<ensembleId>COSMO-LEPS</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
<!--Calculate Statistics-->
<activity>
<runIndependent>true</runIndependent>
<workflowId>Statistics_COSMO-LEPS</workflowId>
</activity>
<!--Export forecast data to wavos format -->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Rhein_ExportForecast_COSMO-LEPS</moduleInstanceId>
</activity>
</workflow>
|
...
Code Block |
---|
title | Usage of properties to add catchment specific information to a web-report |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<workflow version="1.1" xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/workflow.xsd">
<!--Create Calibration reports-->
<properties>
<string key="CATCHMENT" value="armidale"/>
<string key="CATCHMENT_NAME" value="Armidale"/>
<string key="BASIN" value="macleay"/>
<string key="STATE" value="NSW"/>
<string key="TIMEZONE" value="AET"/>
<string key="ENSEMBLE" value="OFFICIAL"/>
<string key="ENSMEMBER" value="URBS Final"/>
</properties>
<!--Compute -sub-catchment averaged data as sub-catchment data is not archived-->
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Processing_15m_Site_Calibration</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Performance_15m_Calibration</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Report_15m_Site_Calibration</moduleInstanceId>
</activity>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>Report_Catchment_Calibration</moduleInstanceId>
</activity>
</workflow> |
The following workflow example uses properties to make a apply the logic, encapsulated in general module config file, to a specific catchment. The second code block shows how some of the properties are used to make timeseriessets in the Rainfall_15m_Forecast module config file unique for the locations of a certain catchment.
Code Block |
---|
title | Workflow using properties defining property-values to apply general processing logic to a specific catchment |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<workflow xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/workflow.xsd" version="1.1">
<properties>
<string key="RADAR" value="noradar"/>
<string key="CATCHMENT" value="armidale"/>
<string key="BASIN" value="macleay"/>
<string key="ENSEMBLE" value="IFD"/>
<string key="ENSMEMBER" value="URBS Local"/>
</properties>
<activity>
<runIndependent>true</runIndependent>
<moduleInstanceId>armidale_Rainfall_Forecast</moduleInstanceId>
<moduleConfigFileName>Rainfall_15m_Forecast</moduleConfigFileName>
</activity>
<activity>
<runIndependent>true</runIndependent>
<workflowId>armidale_URBS_Catchment_Forecast</workflowId>
<ensemble>
<ensembleId>IFD</ensembleId>
<runInLoop>true</runInLoop>
</ensemble>
</activity>
</workflow> |
...
Code Block |
---|
title | Sub-workflow using properties defined at top-level workflow |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<workflow xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews
http://fews.wldelft.nl/schemas/version1.0/workflow.xsd" version="1.1">
<parallel>
<activity logStartedAsDebug="true" logFinishedAsDebug="true">
<runIndependent>false</runIndependent>
<moduleInstanceId>RTCTools_KOT_Check_$RUNTYPE$</moduleInstanceId>
<moduleConfigFileName>RTCTools_Check_Qinc_Fx</moduleConfigFileName>
</activity>
<activity logStartedAsDebug="true" logFinishedAsDebug="true">
<runIndependent>false</runIndependent>
<moduleInstanceId>RTCTools_KOT_Check_$RUNTYPE$</moduleInstanceId>
<moduleConfigFileName>RTCTools_Check_QO_Seed</moduleConfigFileName>
</activity>
<activity logStartedAsDebug="true" logFinishedAsDebug="true">
<runIndependent>false</runIndependent>
<moduleInstanceId>RTCTools_KOT_Check_$RUNTYPE$</moduleInstanceId>
<moduleConfigFileName>RTCTools_Check_FB</moduleConfigFileName>
</activity>
</parallel>
</workflow> |
...