RouteOnAttribute 2.3.0¶

BUNDLE¶

org.apache.nifi | nifi-standard-nar

DESCRIPTION¶

Routes FlowFiles based on their Attributes using the Attribute Expression Language

TAGS¶

Attribute Expression Language, Expression Language, Regular Expression, attributes, detect, filter, find, regex, regexp, routing, search, string, text

INPUT REQUIREMENT¶

REQUIRED

Supports Sensitive Dynamic Properties¶

false

PROPERTIES¶

Property

Description

Routing Strategy

Specifies how to determine which relationship to use when evaluating the Expression Language

RELATIONSHIPS¶

NAME

DESCRIPTION

unmatched

FlowFiles that do not match any user-define expression will be routed here

WRITES ATTRIBUTES¶

NAME

DESCRIPTION

RouteOnAttribute.Route

The relation to which the FlowFile was routed

USE CASES¶

Route data to one or more relationships based on its attributes using the NiFi Expression Language.

Keep data only if its attributes meet some criteria, such as its filename ends with .txt.

Discard or drop a file based on attributes, such as filename.

Use Cases Involving Other Components¶

Route record-oriented data based on whether or not the record’s values meet some criteria