[
https://issues.apache.org/jira/browse/NIFI-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864100#comment-15864100
]
Pedram Bashiri commented on NIFI-3471:
--------------------------------------
Sure!
Here is the scenario. There are 3 flowfiles coming in with two attributes: att1
and att2. I want to merge them in a way that the resulting merged file has 2
attributes att1 and att2 and values for these two attributes would be the
concatenation of values from incoming files (obviously if the values are the
same we would just want one of them).
I have already modified MergeContent processor to have this feature,
MergeContentPlus. checkout the following screenshots.
Here's how the workflow looks like:
!screenshot-1.png!
Attributes of the three incoming flow files are as below:
!screenshot-2.png! !screenshot-3.png! !screenshot-4.png!
If we let MergeContent and MergeContentPLus process the flowfiles,
!screenshot-5.png!
The result from MergeContent looks like:
!screenshot-6.png!
While MergeContentPlus gives ust this:
!screenshot-7.png!
Please let me know if there's a better way to achieve this using existing
processors.
Thanks
> Tune MergeContent processor
> ---------------------------
>
> Key: NIFI-3471
> URL: https://issues.apache.org/jira/browse/NIFI-3471
> Project: Apache NiFi
> Issue Type: New Feature
> Reporter: Pedram Bashiri
> Priority: Minor
> Attachments: screenshot-1.png, screenshot-2.png, screenshot-3.png,
> screenshot-4.png, screenshot-5.png, screenshot-6.png, screenshot-7.png
>
>
> Tune MergeContent processor so we have the option to concatenate values of
> attributes from incoming FlowFiles into the outgoing FlowFile.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)