File-based¶
File Tailer¶
Characteristics:
File Tailer monitors a given file in a given location.
Data is processed line by line.
Note that the File Tailer does not support the definition type List in the Information Model.
Supported File Formats:
CSV
JSON
XML
How to use File Tailer with CSV¶
Select File tailer (CSV) from the Drop-Down.
Click the Configure button.

Make sure the root model node is selected to be able to configure the File Tailer to String and CSV String to Model.
Enter the file path for the CSV-file on your machine.
Enter the separator which is used in the CSV-file, the string delimiter and the timestamp format if one is used.
If the CSV file contains a header enable ignoreFirstLine.

Select the event node in the tree on the left side.
Check the routes checkbox.
Enter a regular expression for the message filter.
Click the Apply button, then the Close button and save the Channel by clicking the Save button on the upper right corner.

Description of configuration properties:
Property |
Description |
Example |
---|---|---|
Separator |
Separator type, used in the csv file |
|
Delimiter |
Values that have an additional delimiter like “Date”, “Time” |
|
Timestamp format |
Format of the timestamp |
|
File |
Path to the csv file |
|
Delay Millis |
Delay between checks of the file for new content in milliseconds |
|
TailFromEnd |
Set to true to tail from the end of the file, false to tail from the beginning of the file |
|
ReopenBetweenChunks |
If true, close and reopen the file between reading chunks |
|
routes |
Path of a node in the Information Model |
|
messageFilterRegEx |
Regular Expression for the message filter used in the implementation |
|
File Consumer¶
Characteristics¶
File Consumer monitors a specified folder - the so-called input folder
If a file is inserted the following actions take place:
After successful execution of the rule the file is moved into a so-called output folder
In case of an exception the file is moved into an error folder
Supported File Formats:
CSV
JSON
XML
How to use File Consumer with CSV¶
Select File reader (CSV) from the Drop-Down.
Click the Configure button.

Make sure the root model node is selected to configure the File Consumer to String as well as the CSV String to Model.
File Consumer to String - Configuration
Enter a path for the input folder - InFolder
Enter a path for the process folder - ProcessFolder
Enter a path for the output folder - OutFolder
Enter a path for the error folder - ErrorFolder
Select the CharSet according to the file in use
CSV String to Model - Configuration
Enter the separator which is used in the CSV-file
If needed: Set string delimiter and/or the timestamp format
If the CSV file contains a header enable ignoreFirstLine

Specify the Event used by selecting the event node in the tree on the left side
Note
The entries of a CSV-File can only be mapped directly to an Event object and its parameters.
File Consumer to String - Configuration
Enable the FileNameFilter checkbox
Enter a regular expression in order to determine which file is to be processed in the input folder
Csv String to Model - Configuration
Enable the routes checkbox
Start of processing
If the entire content of the file is processed on this event enter a wildcard in the RegEx field
If the processing starts at a specific line enter a regular expression in the RegEx field in order to identify the line
Click the Apply button, then the Close button and save the Channel by clicking the Save button

Description of configuration properties:
Property |
Description |
Example |
---|---|---|
Separator |
Separator type, used in the csv file |
|
Delimiter |
Values that have an additional delimiter like “Date”, “Time” |
|
Timestamp format |
Format of the timestamp |
|
ignoreFirstLine |
Delay between checks of the file for new content in milliseconds |
|
TailFromEnd |
Set to true to tail from the end of the file, false to tail from the beginning of the file |
|
InFolder |
Path leading to the Input Folder |
|
OutFolder |
Path of a node in the Information Model |
|
ErrorFolder |
Regular Expression for the message filter used in the implementation |
|
CharSet |
Encoding of the file in use |
|
ProcessFolder |
Regular Expression for the message filter used in the implementation |
|