...
Element | Format | Description |
general ComplexType |
|
|
archiveFolder | ||
ExportProductActivityComplexType |
|
|
areaId | string | Id of the area to which this product belongs |
sourceId | string | Id of the source to which this product belongs |
sourceFile | string | File which should be archived as part of the product |
moveFile | boolean | If this option is set to true the source file will be deleted after it has been archived. |
sources/zipProduct | boolean | if this option is set to true the files will |
sources/sourceFiles | string | |
sources/relativePath | string | the files identified by the tag sourceFiles will be exported to folder with the configurewithin the main folder of the data set identfied |
moveFile | boolean | If this option is set to true then the source file will be deleted after the file has been copied to the archive |
An configuration example is given below.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?>
<exportArchiveModule
xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/exportArchiveModule.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews">
<exportProducts>
<general>
<archiveFolder>$ARCHIVE_DIR$</archiveFolder>
</general>
<activities>
<exportProduct>
<areaId>area</areaId>
<sourceId>source</sourceId>
<sourceFile>$INPUT_FOLDER$/sourceA</sourceFile>
<sourceFile>$INPUT_FOLDER$/sourceB</sourceFile>
<moveFile>true</moveFile>
</exportProduct>
</activities>
</exportProducts>
</exportArchiveModule> |
An configuration example is given below.
Code Block |
---|
Code Block | language | xml
<?xml version="1.0" encoding="UTF-8"?> <exportArchiveModule xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/exportArchiveModule.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews"> <exportProducts> <general> <archiveFolder>$ARCHIVE_DIR$</archiveFolder> </general> <activities> <exportProduct> <exportProducts> <general> <areaId>areaTest</areaId> <archiveFolder>$ARCHIVE_DIR$</archiveFolder> <<sourceId>sourceTest</general>sourceId> <activities> <sources> <exportProduct> <areaId>area<<zipProduct>true</areaId>zipProduct> <sourceId>source</sourceId> <sourceFiles>$INPUT_FOLDER$/testdata/exportandmoveandzip/source?</sourceFiles> <sourceFile>$INPUT_FOLDER$/sourceA</sourceFile><relativePath>aa</relativePath> <sourceFile>$INPUT_FOLDER$/sourceB</sourceFile></sources> <moveFile>true</moveFile> </exportProduct> </activities> </exportProducts> </exportArchiveModule> |