Stream File Reader

Discover more about the Stream File Reader component and how to use it on the Digibee Integration Platform.

Stream File Reader reads a local file in a JSON structure, that currently supports CSV only, and triggers subpipelines to process each message. It should be used for heavy files.

Parameters

Take a look at the configuration parameters of the component. Parameters supported by Double Braces expressions are marked with (DB).

Messages flow

Input

The component waits for a message in the following format:

{
"filename": "fileName"
}

Local File Name overrides the default local file.

Output

{
"total": 0,
"success": 0,
"failed": 0
}
  • total: total number of processed lines.

  • success: total number of lines successfully processed.

  • failed: total number of line whose processing failed.

To know whether a line has been processed correctly, the return value { "success": true } must be present for each processed line.

The component throws an exception if the File Name doesn't exist or can't be read.

The files manipulation inside a pipeline occurs in a protected way. All the files can be accessed with a temporary directory only, where each pipeline key gives access to its own files set.

This component makes batch processing. To better understand the concept, read the article about Batch processing.

Last updated