Script Parser for file endpoint
Use the Script Parser to write our own parser by using JavaScript. To access the Script Parser configuration parameters:
- Add a File endpoint.
- On the File endpoint configuration page, click Parser and select Script Parser from the list.
- Expand the Parser section to view the parameters.
Parameters
- Script
- Use this field to write the user-defined script to be run. A sample script is provided by default. For more information about the objects and functions that we can use in the script, go to the SDI documentation and search for Script Parser.
We can also configure the following advanced parameters. Under the Parser section, expand Advanced to view these parameters.
- External Files
- If you want to include external script files at run time, specify them here, one file on each line. These files are run before your script.
- Include Global Scripts
- Select to include scripts from the Script Library.
- Character Encoding
- Character encoding to use for reading or writing.
- For more information, go to the SDI documentation and search for Character Encoding conversion.
- Comment
- Add your comments. The comment is not considered while parsing data.
- Detailed Log
- Select this check box to generate log messages with detailed debug information.
For detailed information about the Script Parser, its objects, methods, and schema, go to the SDI documentation and search for Script Parser.
Parent topic:
File parsers