Text to Lines Converter from URL
This adapter reads lines of a text document from any valid URL and outputs an XML document containing an XML element for each line. With the operation Iterate, the adapter runs through the input document and outputs a result document for each iteration within the Technical Process.
Note:
If you want to define multiple Text to Lines Converters from URL 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 from URL and one or more Text to Lines Converters 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 function adapter Possible values:
|
Parameters
Adapter | Main adapter class (do not change!) Possible values: |
start | First line to be read (counting begins with 0) Possible values:
|
count | Number of lines to be read Note: When using the Possible values:
|
id | Unique ID of the Text to Lines Converter from URL component within the process context respectively the process instance (if you want to use multiple independently iterating Text to Lines Converters from URL within the same process context) Possible values:
|
url | URL of the text document to be read Possible values: Any valid URL (e.g. |
encoding | Encoding of the input text document 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 |