...
The ContentUpdateChecker is a module that can be used at the start of a workflow to see if new data content is available from either a file or url. If so a log message with event code and + the new data when new content is foundlogged, a debug message is logged when no new content is found. In case an empty file is found, the last modification date will be used as content in date format: 'yyyyMMddHHmmss'.
Configuration
A configuration example of the content update checker is given below:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<contentUpdateChecker 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/contentUpdateChecker.xsd">
<url>http://matroos.deltares.nl/direct/get_anal_times.php?database=maps&source=knmi_h11_v72&most_recent=1</url>
<user>gebruiker</user>
<password>wachtwoord</password>
<eventCode>HirlamMeteo.NewData</eventCode>
<messagePrefix> New data for hirlam meteo for T0: </messagePrefix>
<interval unit="second"/>
<timeout unit="minute"/>
</contentUpdateChecker>
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<contentUpdateChecker 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/contentUpdateChecker.xsd">
<file>$IMPORT_FOLDER$/KNMI_UKMO_MAPS/done</file>
<eventCode>HirlamMeteo.NewData</eventCode>
<messagePrefix> New data for hirlam meteo for T0: </messagePrefix>
<interval unit="second"/>
<timeout unit="minute"/>
</contentUpdateChecker>
|
...