TTX Joiner Step

From Okapi Framework
Revision as of 19:20, 4 June 2016 by Ysavourel (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

Re-joins multiple TTX documents into a single one.

Takes: Raw documents. Sends: Raw document.

To split a single TTX document into several ones, use the TTX Splitter Step.

The received event is unaltered. The step outputs the resulting file in the same directory as the input documents.

Input files with no part marker, or invalid part marker will be ignored (with a warning).

Parameters

Optional suffix to place at the end of the result files — Enter a marker text to add at the end of the output filename. If a file with the same name already exist in the output directory, it will be overridden without warning.

For example, with the following input parameters:

Optional suffix: _CONCAT
Input file list: C:\Project\FolderABC\index.html_part001.ttx
                 C:\Project\FolderABC\someFile.html_part002.ttx
                 C:\Project\FolderABC\index.html_part002.ttx
                 C:\Project\FolderABC\someFile.html_part001.ttx

First the input list is sorted internally so all files are listed in the proper order:

C:\Project\FolderABC\index.html_part001.ttx
C:\Project\FolderABC\index.html_part002.ttx
C:\Project\FolderABC\someFile.html_part001.ttx
C:\Project\FolderABC\someFile.html_part002.ttx

Then the files are processed and you get the following output files:

C:\Project\FolderABC\index.html_CONCAT.ttx
C:\Project\FolderABC\someFile.html_CONCAT.ttx

Limitations

  • This step is triggered at the END_BATCH event.