...
The import process require a configuration of folders, filenames, transformers, handlers, logging etc,. Once this is setup the service is working automatically to handle new data.
Data flow and process:
A new file is generated on a predefined disk area by an external system
The service supervises the disk area and detects the new file, the file name is compared to a name pattern to determine if the file is handled and how it is handled
The import handler is called to transform the file to an internal format suitable for upload
The items loaded to the importer is passed to the uploader
The uploader handler calls a remote server Api, passing a chunk of items
The remote Api will handle the data and store it to the server, the REST call indicates what interface is called and type of the data to store
Installation
Run the installer.
Possibly register the service, see Windows Service installer finishes correctly but service is missing.
Ensure Signifikant Service is run under “Local System” or an account which has access to SQL Server.
Configuration
Imported data
...
Code Block | ||
---|---|---|
| ||
<Asset> <Serialnumber>1234567</Serialnumber> <ArticleNumber>PROD-123</ArticleNumber> <Image>Default.png</Image> </Asset> |
Settings for testing
Info |
---|
Version 5.1 and later |
Importer service has a few extra settings intended for testing purposes, which may be used for error search.
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="utf-8"?>
<CustomFolderConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Enabled>true</Enabled>
<!-- In case SaveItem is true, importer service will save imports directly to the database. In this case importer service will
need to know where to find the server.config file since it may be either in AppData or in Program data depending on if importer
service is installed on Manager Server or on Web Server. -->
<ServerConfigPath>C:\ProgramData\Signifikant\Assert\server.config</ServerConfigPath>
<!-- Log files placed here. -->
<LogFolder>C:\Signifikant\Log\ImportLog</LogFolder>
<!-- File watcher will be recreated every x hrs. Default is 0 which means no recreation. Setting available from version 5.1.7 and later. -->
<SuperviseHours>48</SuperviseHours>
<Settings>
<CustomFolderSettings ImporteXXXrId="X">
<!-- Additional options for testing -->
<Options>
<!-- Delay each import a bit to simulate longer processing time -->
<Option key="Delay" value="200" />
<!-- Auto create a set of files to import, batch size defines how many -->
<Option key="BatchSize" value="10" />
<!-- Source folder for test import files -->
<Option key="SourceFolder" value="C:\Temp\ImportTestInput" />
<!-- Test logs are separated from normal logs and written at this location -->
<Option key="LogFolder" value="C:\Temp\ImportTestLog" />
</Options>
</CustomFolderSettings>
</Settings>
</CustomFolderConfiguration> |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...