Srini,
You should set your merge strategy to "defragment"  on the MergeContent
processor.  This will merge based on the parent record that was split at
splitJson.
Thanks,
Lee


On Wed, Mar 15, 2017 at 3:55 PM, srini <[email protected]> wrote:

> Hi,
> I have a subflow like this. From SplitJson to MergeContent it is in loop. I
> expect it loops based on the number of splits of that record. How it know
> that splits for that record is over, and it needs to be proceed to next
> processor that is ExtractText?
>
> I have 3 records. In my case it is merging 25 (8 + 5 + 12 = 25). It is
> merging all records data into one record. It shouldn't merge all, instead
> after each record it should proceed to next processor.
> 1st record: Merge 8 items
> 2nd record:  Merge 5 items.
> 3rd record: Merge 12 items.
>
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/
> n15148/Screenshot_2017-03-15_17.png>
>
> What changes do you recommend to my flow?
> Here is my MergeContent screenshot.
> <http://apache-nifi-developer-list.39713.n7.nabble.com/file/
> n15148/Screenshot_2017-03-15_17.png>
>
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/When-should-MergeContent-stop-and-
> proceed-to-next-processor-tp15148.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>

Reply via email to