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
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.