Adding a File Spool Collector component

You add a File Spool Collector as the first component to the tree. This component searches for files in directories according to search criteria, and then sends the files that were found to the next component of the tree.

To add an import component

  1. In the scenario window, select Imports on the component toolbar, and then click File Spool Collector. A File Spool Connector component is added to the tree. You can set it up in the identification area.

  1. In Name of the identification area, type LoadFile as the name of the component.

  2. In Description, type Search for CSV files in the directory fitPetHomeFileDir.

  3. Click the Paths tab.

  4. In the Paths table, click to add a new row to the table.

  5. In the Path column, double-click the new row, and then type the directory path where the files are stored. Do not check the Recursive check box because there is no subdirectories to read in the directory fitPetHomeFileDir. In our tutorial:

  1. In Search Criteria, click the Select file with a specific extension option, and then in Extension, type csv as the extension of the files to find. All the files that are found by the File Spool Collector make up a resource available for the next components of the tree. You can now name this new resource.

  1. Click the Sort tab, and then in Resource Key, type csvFile that makes up a resource for the next components of the tree.

  1. In Files sort, select File Name Sort in the list. The File Spool Collector sorts all the files before reading them.

  1. In File Filtering, click the Do not load already processed file option. This option means that the File Spool Collector does not process the files already found.

All the files which has been found by the File Spool Collector make up a resource that can be read by the next component of the tree.

 

Next step: Add the first modifier (a Fixed-Size Line Set Extractor).