Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to replace entire Flowfile content?

Tags:

apache-nifi

I want to start with one Flowfile body text and then completely replace it during the course of my process. How do I replace the entire Flowfile content with some new static content?

James

like image 766
J.Zil Avatar asked Oct 17 '25 22:10

J.Zil


1 Answers

There are many processors which can manipulate the content of a flowfile, but the simplest processors would be GenerateFlowFile (to create a flowfile with custom static/dynamic text) and ReplaceText (to replace the content of an existing flowfile). For ReplaceText, you can use a matching regex pattern for Search Value of ^(.*)$ to match all characters in the incoming flowfile content and replace it with whatever static (or dynamic via Expression Language) content you like.

like image 191
Andy Avatar answered Oct 21 '25 04:10

Andy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!