Versions Compared

Key

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

...

To run all preceding tasks, including re-running those tasks already up to date, select the Run all to Selected option. This will run all tasks that have not yet been run in the defined sequence.

Running the group workflow on the server

Once the iteration of tasks has been completed, the workflow associated with the group selected can be submitted for running on the server. In effect this is the same as submitting that task through the Manual Forecast Dialogue. This workflow will, however, use the properties as defined for the sub-tasks when running these locally.

Showing results of a sub-task

To view the results of a sub task, the option Show Results... can be selected. This opens the time series display, and opens the pre-configured display that has been configured to be associated with that sub-task.

Setting the properties of task runs

The properties of the task runs can be amended from the default settings by selecting the Properties option.

Through this display the properties of the run can be specified. This display is similar to the options available in the Manual Forecast Dialogue

A what-if scenario can be selected to be used in the task runs

The run can be set to use to cold state start by selecting the Cold State option and setting number of days prior to the Forecast T0 that the run should start.

The run can be set to use a warm state by selecting the state search period. This can be set relative to the Forecast T0 by using the Warm State option. Alternatively the historical run to start from can be selected in the list of dates available in the Warm State Selection option.

The forecast length can be specified to deviate from the default by selecting the option Forecast Length and entering the appropriate number of days.

One the options have been defined, these will be used for all tasks run within the active session of the interactive forecast display.

Image Added

Configuration of the Interactive Forecast Display

The interactive forecast display is an implementation of the TaskRun dialogue.

This is the configuration of a display and can be found in the displayConfigFiles section of the configuration.

The configuration of the display requires a layout of the flow chart to be defined, as well as the workflows associated to each group of tasks, and sub-tasks.

Image Added

taskRunDialog

Main element of the configuration. This may include the attributes;
Title The title of the window
showProperties An option to enable or disable the Properties dialogue on the display.

taskGroup

For each group of tasks this element is defined. This has two attributes;
Name the name of the group as displayed in the tree view on the left of the display.
workflowId the Id of the workflow which can be submitted to the central server. This workflow should run all the tasks in the group. Note that there is no check if this is indeed the case.

Image Added

flowChart

This element is used to define the overall layout of the flow chart shown on the main panel. The element has no attributes

scale

Scale can be used to increase and decrease the size of the flow chart, without the need to change each individual item.

taskSize

This defines the size of each task block. The values entered here are multiplied by the scale to find the actual size in pixels. There are two attributes;
width width of each task block - the full width is found by multiplying the width defined with the scale.
height heightof each task block - the full width is found by multiplying the height defined with the scale.

simpleTask

Not used in the configuration of the Interactive Forecast display. This element should not be included.

Image Added

operatorTask

Definition of each of the sub-tasks that can be run from the display. The attributes that are relevant to the configuration of this display are;
name Name of the task as it should appear on the display
workflowId Id of the workflow to run under this task
explorerLocationId Id of the main location associated with the sub-task. This is used to open the associated display to view results.
runLocally Option whether this task is to run locally or centrally (default: true)

center

Defines the centre of the associated task block. This coordinates are in the same scale as the taskSize. The actual pixels from the top left of the display can be calculated by multiplying with the scale value. The attributes are;
x location of the centre of the task block from the top of the panel
y location of the centre of the task block from the left of the panel

dependency

Defines the tasks on which this task depends (i.e. its predecessors). Zero or more dependencies can be defined. The attributes are;
taskName name of the task that should be run before this one

vertex

If the task being defined and a dependent task cannot be connected by a straight line, a vertex point can be defined. The connecting line will pass through that point. . The actual pixel location from the top left of the display can be calculated by multiplying with the scale value. The attributes are;
x x-coordinate of the vertex from the left of the panel.
y y-coordinate of the vertex from the top of the panel

fewsPanel

Not used in the configuration of the Interactive forecast display. This element should not be included.

archiveTask

Not used in the configuration of the Interactive forecast display. This element should not be included.

Adding Interactive Forecast Dialogue to the configuration.

To use the interactive forecast dialogue, it must be added to the following general configuration files in the SystemConfig section;

Explorer.xml

Code Block
xml
xml
<explorerTask name="Interactive Forecast">
	<iconFile></iconFile>
	<mnemonic>I</mnemonic>
	<taskClass>nl.wldelft.fews.gui.plugin.taskRunDialog.TaskRunDialogFewsExplorerPlugin</taskClass>
	<toolbarTask>true</toolbarTask>
	<menubarTask>true</menubarTask>
	<accelerator>ctrl I</accelerator>
</explorerTask>

Example of a configuration