Support Questions

Find answers, ask questions, and share your expertise

i have two flowfile and i want to merge them my order in nifi

New Contributor

flowfile 1 content -hello flowfile-2 content world my output helloword but i want worldhello how it possible

1 REPLY 1

Super Guru
@Ajay Jayswal

For this case use "Enforce Order processor" and by using UpdateAttribute processor add the sequence number to the flowfile.

Flowfile-2 will have lower sequence number compared to flowfile1 then feed the success connection to "MergeContent processor", By using enforceorder processor we are making sure flowfile2 will be going to mergecontent processor before flowfile1 and mergecontent processor will merges flowfile as "worldhello"

Refer to this link for more details regards to usage/configuring the flow.