Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is possible to run a workflow for a selected set of locations from the IFD, the task dialog and the manual forecast dialog. By default workflows cannot be run for a selected set of locations. To enable this the option allowSelection should be set to true in the workflowdescriptor of the workflow.

In the IFD environment
Image Removed

It is also important to note that this functionality is limited to transformations where the locations of the input time series and the output location are the same. This is typicaly the case for interpolations, aggregations etc.

This functionality cannot be used for spatial transformations. This will be explained with a simple example.

In this example we have a workflow with 2 transformations. The first transformation consists of a interpolation. In the second transformation a closest distance transformation is done. The user wants to calculate the output for a certain output location of the closest distance transformation. When the workflow is started, the interpolation transformation will be started first. However at this point FEWS should know which locations will used as input when the time series for the selected locations will be calculated, because these are the locations for which a interpolation needs to be done. The other calculations can be skipped. Although it is possible to derive such information by analyzing the flow of the transformation it is decided at this point not to implement this. This means that this functionality cannot be applied for this type of tranformations.

Below an example.

Code Block
xml
xml

<workflowDescriptor id="FillRelations" forecast="false" visible="true"autoApprove="false">
  <description>Met deze taak worden de gaten groter dan 2 uur gevuld dmv. relaties.</description>
  <allowSelection>true</allowSelection>
  <schedulingAllowed>true</schedulingAllowed>
</workflowDescriptor>


When a node in the IFD is selected with a workflow which has the allowSelection option set true, the GUI will look like this:

Image Added
In the property dialog below the tree with the nodes two selection boxes will appear.

The first checkbox will enable the option to run a workflow for a specific set of locations. The second checkbox will enable to run the workflow for specified period.

In the taskrun dialog a checkbox will added which which allows the user to enable this functionality. Image Added

 Which locations should the user select?

The transformation will run for the selection locations. If one the input timeseries is selected in the filters or in the map the transformation will run.

This means that the user should select the locations which are changed. This can be a change in the data or a change in the configuration.

This can be explain with the use of a simple example. Lets say we have a system which has a workflow which consists of a user simple function which estimates the water level at location B by simply copying the water level at location A to location B.

After the copying a set of statistical functions are run to compute statistics.

The user edits the water level at location A and want to recompute the water level at location B. However the workflow which does this, is configured to do similar estimates at another 500 locations. In this case the user should select location A.

When the run starts the majority of the calculations are skipped except when the water level for location will be recalculated because in this case location A which is one of the input time series is selected. When this calculation is done, FEWS will

remember that location B is now also changed and will add location B to the list of selected locations. When the statistical functions are run after the water levels are recomputed the statistics for location B are also recalculated because in this case location B will be part of the input time series for these transformations and location B is now added to the list of selected locations.

This functionality cannot be used for spatial transformations. Before enabling this option for a workflow, the configurator should check if the workflow contains spatial transformationsThis is reason why it is only possible to run a set of transformations for a location selection for tranformations in which the input locations are the same as the output locations. There is one expection for this rule. For the statisticRelatedLocation-transformations the functionality is also supported. When such a transformation is started and the outputlocation has a relation with 1 or more inputlocations and the either the outputlocation is selected or one the inputlocations than the selected locations will be extended with the inputlocations and the outputlocations.

In addition to the above, this functionality can only be used for non-forecast workflows. Typically this functionality should be used for pre-processing of post-processing.

...