ScriptedTransformRecord 2.3.0¶

BUNDLE¶

org.apache.nifi | nifi-scripting-nar

DESCRIPTION¶

Provides the ability to evaluate a simple script against each record in an incoming FlowFile. The script may transform the record in some way, filter the record, or fork additional records. See Processor’s Additional Details for more information.

TAGS¶

filter, groovy, modify, record, script, transform, update

INPUT REQUIREMENT¶

REQUIRED

Supports Sensitive Dynamic Properties¶

false

PROPERTIES¶

Property

Description

Module Directory

Comma-separated list of paths to files and/or directories which contain modules required by the script.

Record Reader

The Record Reader to use parsing the incoming FlowFile into Records

Record Writer

The Record Writer to use for serializing Records after they have been transformed

Script Body

Body of script to execute. Only one of Script File or Script Body may be used

Script Engine

The Language to use for the script

Script File

Path to script file to execute. Only one of Script File or Script Body may be used

RESTRICTIONS¶

REQUIRED PERMISSION

EXPLANATION

execute code

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

RELATIONSHIPS¶

NAME

DESCRIPTION

failure

Any FlowFile that cannot be transformed will be routed to this Relationship

success

Each FlowFile that were successfully transformed will be routed to this Relationship

WRITES ATTRIBUTES¶

NAME

DESCRIPTION

mime.type

Sets the mime.type attribute to the MIME Type specified by the Record Writer

record.count

The number of records in the FlowFile

record.error.message

This attribute provides on failure the error message encountered by the Reader or Writer.

SEE ALSO¶