Text to Lines Converter
This adapter reads all lines or specified lines of a text document and outputs an XML document containing an XML element for each line.
As input, the adapter expects a text document provided by the preceding process action. The Iterate
operation allows to iterate through the input text document and to output a result document for each iteration within the Technical Process.
Note:
If you want to define multiple Text to Lines Converters within the same process context, set in parameter
id
a unique ID for each adapter, e.g.1001
,1002
etc. This ensures that each adapter will iterate or will be reset correctly (see operationClear
).
This also applies if you use one or more Text to Lines Converters and one or more Text to Lines Converters from URL within a process context.When the
id
parameter's value remains0
, a random ID is generated that is used as the ID in the current process. This ID might not be unique if a subprocess contains a Text to Lines Converter with the same ID.
Therefore, it is recommended to always set anid
not equal to0
.
Properties
Operation | Defines the operation executed by the adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: |
start | First line to be read (counting begins with Possible values:
|
count | Number of lines to be read Note: When using the Possible values:
|
id | Unique ID of the Text to Lines Converter component within the process context respectively the process instance (if you want to use multiple independently iterating Text to Lines Converters within the same process context) Possible values:
|
Output
The adapter outputs a UTF-8-encoded XML document with the following structure. An XML element <Line/>
containing the line number and the line's content will be created for each line:
<Text>
<Line lineNo="line number"><!--line content--></Line>
</Text>
Status values
-1 | Error while executing the adapter (for details, see server log) |
0 | The adapter doesn't output data (anymore). When using the operation |
1 | The adapter outputs a result document. When using the operation |