ScriptedReader

Description:

Allows the user to provide a scripted RecordReaderFactory instance in order to read/parse/generate records from an incoming flow file.

Tags:

record, recordFactory, script, invoke, groovy, python, jython, jruby, ruby, javascript, js, lua, luaj

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

NameDefault ValueAllowable ValuesDescription
Script EngineBeanShell
  • BeanShell BeanShell 2.0b6 [BeanShell Engine 1.0]
  • ECMAScript ECMAScript ECMA - 262 Edition 5.1 [Oracle Nashorn 1.8.0_292]
The engine to execute scripts
Script FilePath to script file to execute. Only one of Script File or Script Body may be used

This property requires exactly one file to be provided..

Supports Expression Language: true (will be evaluated using variable registry only)
Script BodyBody of script to execute. Only one of Script File or Script Body may be used
Module DirectoryComma-separated list of paths to files and/or directories which contain modules required by the script.

This property expects a comma-separated list of resources. Each of the resources may be of any of the following types: file, directory.

Supports Expression Language: true (will be evaluated using variable registry only)

State management:

This component does not store state.

Restricted:

Required PermissionExplanation
execute codeProvides operator the ability to execute arbitrary code assuming all permissions that NiFi has.

System Resource Considerations:

None specified.