[
https://issues.apache.org/jira/browse/NIFI-5454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Burgess updated NIFI-5454:
-------------------------------
Description:
DuplicateFlowFile is currently useful mostly for load testing, as it generates
a fixed number of flow files as copies of the incoming flow file. However there
is no way to distinguish the flow files from each other, so for non-test
purposes, it would be nice to have a way to treat copies differently, either
for routing purposes or to access other values, such as attributes with
delimited fields, etc.
This Jira proposes to add the following improvements to DuplicateFlowFile:
- add a "copy.index" attribute to the outgoing flow files, setting the
attribute to zero (0) on the original flow file, and incrementally setting it
on the copies.
- Add support for Expression Language to the Number of Copies property
was:
DuplicateFlowFile is currently useful mostly for load testing, as it generates
a fixed number of flow files as copies of the incoming flow file. However there
is no way to distinguish the flow files from each other, so for non-test
purposes, it would be nice to have a way to treat copies differently, either
for routing purposes or to access other values, such as attributes with
delimited fields, etc.
This Jira proposes to add the following improvements to DuplicateFlowFile:
- add a "copy.index" attribute to the outgoing flow files, setting the
attribute to zero (0) on the original flow file, and incrementally setting it
on the copies.
- Add support for Expression Language to the Number of Copies property
- Remove the requirement on the Number of Copies property (and remove its
default value), and add an optional "Index Values" property, which is expected
to be a comma-separated list of values for the copy.index attribute. Exactly
one of these two properties must be set.
If Number of Copies is set and Index Values is not, then the behavior remains
the same as it has been. If Number of Copies is not set and Index Values is
set, then the number of values in Index Values list is the Number of Copies
that will be produced, and the individual values will be set as the copy.index
attribute value.
> Add ability to specify per-flowfile values via DuplicateFlowFile
> ----------------------------------------------------------------
>
> Key: NIFI-5454
> URL: https://issues.apache.org/jira/browse/NIFI-5454
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: Matt Burgess
> Priority: Minor
>
> DuplicateFlowFile is currently useful mostly for load testing, as it
> generates a fixed number of flow files as copies of the incoming flow file.
> However there is no way to distinguish the flow files from each other, so for
> non-test purposes, it would be nice to have a way to treat copies
> differently, either for routing purposes or to access other values, such as
> attributes with delimited fields, etc.
> This Jira proposes to add the following improvements to DuplicateFlowFile:
> - add a "copy.index" attribute to the outgoing flow files, setting the
> attribute to zero (0) on the original flow file, and incrementally setting it
> on the copies.
> - Add support for Expression Language to the Number of Copies property
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)