Wiki Markup |
---|
{scrollbar} |
What | ImportAmalgamate |
---|---|
Required | no |
Description | Amalgamates external historical data |
schema location | http://fews.wldelft.nl/schemas/version1.0/importAmalgamate.xsd |
...
For systems that did not have an amalgamate running it maybe required to amalgamate the complete database. Of course this should only be done once.
It is possible do this with the amalgamateOrphans=true. As this task may take too long (regular FSS tasks have a time out of 3 hours) this should be handled with care.
In that case it maybe useful to have the task run at an FSS that has no localdatastore, but has direct access to the central database. Only in that particular case the amalgamate runs (hard coded in the software) for only 1 hour. Then the task is aborted and the remaining imports are not handled in that taskrun anymore. This is done on purpose, as it is now possible to schedule this task with an interval of e.g. 3 hours (making it possible to the MC to do all the required cleaning stuff like rollingBarrel and markedRecordManager). In a few hours (to even days or in some rare situations evens weeks) all the taskruns are handled and the complete database has been amalgamated. Then the scheduled task can be stopped.
Example
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<moduleDescriptor id="ImportAmalgamate"> <className>nl.wldelft.fews.system.plugin.amalgamate.ImportAmalgamate</className> </moduleDescriptor> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<moduleInstanceDescriptor id="Amalgamate"> <moduleId>ImportAmalgamate</moduleId> </moduleInstanceDescriptor> |
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<?xml version="1.0" encoding="UTF-8"?> <importAmalgamate 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/importAmalgamate.xsd"> <workflowId>Import_Data</workflowId> <workflowId>Procesoverzicht_Update</workflowId> <importRunMinimalAge unit="hour"/> </importAmalgamate> |