You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2018/07/25 15:40:00 UTC

[jira] [Created] (NIFI-5454) Add ability to specify per-flowfile values via DuplicateFlowFile

Matt Burgess created NIFI-5454:
----------------------------------

             Summary: 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


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)