DummyPreParser
Group |
|
Class Name |
com.ebd.hub.datawizard.parser.DummyPreParser |
Function |
The preparser always returns the string dummy data, or a default file, regardless of the input data. |
Configuration File |
None |
Description
If you simply want to transfer data with Lobster_data, without manipulating it, you would normally skip the parsing process by ticking off the checkbox no mapping. By doing so, you will not be able to set variables, invoke functions, or execute SQL statements. The DummyPreParser always provides the string dummy data, no matter what the input data is, which makes it possible to go through phase 3, 4 and 5. To do so, you only need to create one node with one field in the input structure, chose an appropriate match code for the input line and create a 1:1 mapping.
It is possible to invoke the DummyPreParser with or without an additional parameter.
Important note: If the DummyPreParser is selected and the profile is saved, the option Data routing and the document type CSV are automatically set on page General Data.
Important note: If option Data routing is used on page General Data, the DummyPreParser is automatically set, the document type CSV is selected and a fitting source structure is created.
DummyPreParser Without Additional Parameter
Without an additional parameter (empty input field for additional parameters in profile), the preparser always provides the line dummy data in ISO-8859-1 encoding. This can be used if the input data does not have to, or cannot be parsed (e.g. binary data), and only needs to be sent as received or as received, unpacked.
DummyPreParser With Additional Parameter
The additional parameter is interpreted as a directory path to a text file. The content of this file will be used instead of the line dummy data, but only if the input data of the job have a size of 0 bytes. The encoding of the data is defined by the file encoding. In other words: The preparser returns the unchanged input data if it has at least a size of 1 byte. This also applies to data, which cannot be parsed, e.g. binary files like PDF files. If the input data is empty, the content of the text file will be used instead.