DuplicateFlowFile

Description:

Intended for load testing, this processor will create the configured number of copies of each incoming FlowFile. The original FlowFile as well as all generated copies are sent to the 'success' relationship. In addition, each FlowFile gets an attribute 'copy.index' set to the copy number, where the original FlowFile gets a value of zero, and all copies receive incremented integer values.

Tags:

test, load, duplicate

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.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Number of CopiesNumber of Copies100Specifies how many copies of each incoming FlowFile will be made
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

Relationships:

NameDescription
successThe original FlowFile and all copies will be sent to this relationship

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
copy.indexA zero-based incrementing integer value based on which copy the FlowFile is.

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.