Skip to main content

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

duplicate, load, test

Properties

In the list below required Properties are shown with an asterisk (*). Other properties 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 Copies *Number of Copies100Specifies how many copies of each incoming FlowFile will be made

Supports Expression Language, using FlowFile attributes and Environment variables.

Dynamic Properties

This component does not support dynamic properties.

Relationships

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

Reads Attributes

This processor does not read attributes.

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

This component does not specify system resource considerations.

See Also