Changes for page SplitFile
Last modified by Outhman Moustaghfir on 2024/08/09 17:37
<
>
edited by Outhman Moustaghfir
on 2024/08/08 12:35
on 2024/08/08 12:35
edited by Outhman Moustaghfir
on 2024/08/09 17:33
on 2024/08/09 17:33
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,7 +4,7 @@ 4 4 5 5 [[image:1723111201862-594.png]] 6 6 7 -The splitFile connector is a utility designed to split files based on specific configurations defined in an XML format. The connector supports two modes of operation: ** per_identifier** and **per_bloc**mode. Below is the functional documentation for each mode, including the expected format file, sample input file, and corresponding output files.7 +The splitFile connector is a utility designed to split files based on specific configurations defined in an XML format. The connector supports two modes of operation: **line** and **message **mode. Below is the functional documentation for each mode, including the expected format file, sample input file, and corresponding output files. 8 8 9 9 == Usage == 10 10 ... ... @@ -21,7 +21,7 @@ 21 21 xmlns:ix="localFunction" 22 22 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 23 23 24 - <Split 400mode="" headers="" footers=""ignoreItems="" identifiers=""lineseparator="" position ="" size=""/>24 + <SplitBy mode="" headers="" footers="" excluded="" included="" endLine="" position ="" size="" optionChar="" ></SplitBy> 25 25 </ixDOC> 26 26 27 27 {{/code}} ... ... @@ -32,14 +32,18 @@ 32 32 === Key Attributes: === 33 33 34 34 * **Headers and Footers:** Specify header and footer lines to be included in each output file. 35 -* **Line Separator:** Define the character used to separate lines in the file. 36 -* **Ignored Items:** Exclude specific lines from the output by defining them in the ignoreItems attribute. 37 -* **Position and Size:** Used in **per_identifier** mode to locate and define the identifier in the input file. 35 +* **endLine:** Define the character used to separate lines in the file, default value is newLine char. 36 +* ((( 37 +**optionChar : **Define the character used to separate lines in output file, default value is newLine char. 38 +))) 39 +* **included :** Include specific lines from the output by defining them in the include attribute. 40 +* **excluded:** Exclude specific lines from the output by defining them in the exclude attribute. 41 +* **Position and Size:** Used to locate and define the include in the input file. 38 38 39 -=== 1. Mode: per_identifier===43 +=== 1. Mode: line === 40 40 41 41 42 -=== Input File Example : 46 +=== Input File Example : === 43 43 44 44 45 45 {{code language="txt"}} ... ... @@ -271,12 +271,10 @@ 271 271 {{/code}} 272 272 273 273 274 -==== Example 1: ==== 278 +==== Example 1: without specifying include attribute ==== 275 275 276 - ====Example2:without specifiyingidentifiers====280 +when we don't use include attribute. it means for each output file we are going to have headers and footers and also for the include we will defined them by position and size so for each line at a specific position and with a size this is the include . 277 277 278 -when we don't use identifiers . it means for each output file we are going to have headers and footers and also for the identifiers we will defined them by position and size so for each line at a specific position and with a size this is the identifier . 279 - 280 280 {{{ 281 281 }}} 282 282 ... ... @@ -287,12 +287,12 @@ 287 287 xmlns:ix="localFunction" 288 288 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 289 289 290 - <Split 400mode="per_identifier" headers="UNA;UNB" footers="UNZ1;UNZ"ignoreItems="QTY" identifiers=""lineseparator="'" position ="25" size="9"/>292 + <SplitBy mode="line" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="" endLine="'" position ="25" size="9"></SplitBy> 291 291 </ixDOC> 292 292 293 293 {{/code}} 294 294 295 -== output files : 297 +== output files : == 296 296 297 297 [[image:1723112876572-265.png]] 298 298 ... ... @@ -313,13 +313,13 @@ 313 313 314 314 {{/code}} 315 315 316 -== Example 2: with specifiying ide ntifiers==318 +== Example 2: with specifiying include attribute == 317 317 318 318 we don't need to use position and size. 319 319 320 -== 2. Mode: per_bloc: ==322 +== 2. Mode: message: == 321 321 322 -In ** per_bloc**ntifier. Each output file begins with the start of an identifierand ends when another identifieris encountered.324 +In **message** mode, the file is split into sections based on a specified include . Each output file begins with the start of an include and ends when another include is encountered. 323 323 324 324 325 325 ==== Example ==== ... ... @@ -332,7 +332,7 @@ 332 332 xmlns:ix="localFunction" 333 333 xmlns:fn="http://www.w3.org/2005/xpath-functions"> 334 334 335 - <Split 400mode="Per_bloc" headers="UNA;UNB" footers="UNZ1;UNZ"ignoreItems="QTY" identifiers="UNH"lineseparator="'"/>337 + <SplitBy mode="message" headers="UNA;UNB" footers="UNZ1;UNZ" excluded="QTY" include ="UNH" endLine="'"></SplitBy> 336 336 </ixDOC> 337 337 338 338 {{/code}} ... ... @@ -381,4 +381,4 @@ 381 381 382 382 {{/code}} 383 383 384 -=== 386 +=== ===