Versions Compared

Key

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

...

Section


Column
width50%

Anchor
workflows
workflows

Scheduling workflows

During the training new forecasts will be made or forecasts will be changed by the participants. These forecasts are probably needed in the other system if the WaterCoach training is using multiple connected applications. In order to make the data exchange between the coupled systems easier it is possible to specify workflows that should be run with an interval during the scenario. Note, this can be any workflow. The workflows should be configured inside the script configuration of the scenario that is used for the combined training. Below is an example of a script where an import and export are run with an interval of ten minutes to import forecasts by the other system from a shared datastore folder and export forecasts to the shared folder for the other system. In this way, the trainees do not have to manually import and export data after forecasts are made or modified.

Code Block
titleScheduling workflows
<script 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/watercoachschemas/version1.0/script_config.xsd">
	<title>WC test script</title>
	<timeZone>
		<offset>+00:00</offset>
	</timeZone>
	<dataStart date="2019-10-07" time="09:00:00"/>
	<dataStop date="2019-10-11" time="09:00:00"/>
	<displayStart date="2020-01-01" time="12:00:00"/>
	<workflow>
		<workflowId>Export_WAQUA_IJsselmeer_WC</workflowId>
		<schedulingInterval unit="minute" multiplier="10"/>
	</workflow>
	<workflow>
		<workflowId>Import_Rivieren_Forecast_WC</workflowId>
		<schedulingInterval unit="minute" multiplier="10"/>
	</workflow>
</script>



Column

Image Modified


Example script

...