File Spool Collector

This component allows you to search for files in directories according to search criteria. The files that are found by the File Spool Connector component are sent file by file to the next component of the scenario tree.

Note: This File Spool Collector has its own Log Action that logs the data collections rejected, accepted, or filtered. Do not insert any Log Action component after the File Spool Collector component.

Log files are stored in the log directory and named depending on the following syntax:

  • <FILENAME>.rejected: Contains the rejected data collection. Example: crds.txt.rejected.

  • <FILENAME>.filtered: Contains the filtered data collection. Example: tickets.csv.filtered.

  • <FILENAME>.accepted: Contains the accepted data collection. Example: clientnames.csv.accepted.

Where:

  • <FILENAME>: File name that is processed by the File Spool Collector. Example: crds.txt

Setting up the component

To set up the component

Paths tab

This tab allows you to:

: Adds a new row to the Paths table.

: Removes a row from the Paths table.

: Opens the Open dialog box to choose a directory on your computer.

Paths: In each of the new row, type the directory path where the File Spool Collector must search for files. You can also open the Open dialog box, and then select a directory on your computer.

Recursive: If this option is selected and if the directory contains subdirectories, the File Spool Collector searches for files in all the subdirectories.

Search Criteria: Choose one of the following search criteria

Sort tab

All the files that are found by the File Spool Collector make up a resource available for the next component of the tree.

Resource Key: Type the name of the set of files found by the File Spool Collector. The next components of the tree use this key to access to these files.

Files sort: Provides the list of sort criteria. Select a criterion if you want that the File Spool Collector sorts the files before processing them. Otherwise, select None.

File Filtering:

Encoding tab

This tab allows you to encode every file read by the File Spool Connector.

Input File Encoding: Provides the list of encoding formats compliant with a Java Virtual Machine. Select an encoding format or select Default (UTF-8).