Allows the user to provide a scripted RecordSetWriterFactory instance in order to write records to an outgoing flow file.


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


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 EngineClojure
  • Clojure
  • ECMAScript
  • Groovy
  • lua
  • python
  • ruby
The engine to execute scripts
Script FilePath to script file to execute. Only one of Script File or Script Body may be used
Supports Expression Language: true
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.
Supports Expression Language: true

State management:

This component does not store state.


Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has.