Versions Compared

Key

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

...

The map layer files need to be already present in the default config (current config revision set) and is case sensitive.

The map layer files should not be referenced with an absolute path in LocationSets.xml. This means it should be refered to via just its file name without anything in front of it: <file>locationSet.csv</file>, or <csvFile>locationAttributes</csvFile> or <dbfFile>moreLocationAttributes</dbfFile>

It will check whether all imported files are present in the current revision.

It will validate whether check if it finds warnings and errors in the new configuration is still validand if so rejected the new files and let the module run fail.

If no warnings or errors are found the new configuration is valid the new files will be imported and a new config revision set will be created. The files will be moved to the backupDir.

When the new configuration is NOT valid did not pass this validation NO files will be imported and NO new config revision set will be created. The files will be moved to the failedDir.

Code Block
languagexml
titleConfiguration Update Module
<?xml version="1.0" encoding="UTF-8"?> 
<configUpdateModule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews" xsi:schemaLocation="http://www.wldelft.nl/fews httphttps://fewsfewsdocs.wldelftdeltares.nl/schemas/version1.0/configUpdateModule.xsd">
    <mapLayerImport>
        <importDir>%REGION_HOME%/configUpdate/inputFiles/MapLayerFiles/</importDir>
        <backupDir>%REGION_HOME%/configUpdate/backup</backupDir>
        <failedDir>%REGION_HOME%/configUpdate/failed</failedDir>
    </mapLayerImport>
</configUpdateModule>

...


Stand Alone (testing only)

...

  1. Upload the configUpdateModule config file in the ModuleConfigFiles directory and make sure it is part of a workflow.
  2. Start an OC and create a replica of the database with config (F12 – Database – replicate central database) time series are not necessary 
  3. Create a SA with the replicated localdatastore without (!) config directory
  4. Place new version of the active .csv, .dbf and .shp files in the configured import directory
  5. Start the SA and run de ConfigUpdateModule 
  6. When a new config revision set has been created it will have an id like: "unknown;X"
  7. If a new config revision has been created, errors can occur due to on the fly config update which a SA can not handle. The errors should disappear after restart.
  8. Close the SA and restart
  9. Export the default config (F-12 export – default config)
  10. Check whether the new .csv, .dbf en .shp files are present.

...