Alessio, The ReplaceText processor [1] will allow you to set the content of a flow file to a string of your choosing. You can use GenerateFlowFile [2] with a size of 0B and type Text, to get a flow file routed to ReplaceText, which then sets the content. This is a common pattern seen in some of the example templates [3].
Alternatively, I have a one-processor template [4] that uses InvokeScriptedProcessor [5] and Groovy, and lets you generate flow file(s) where you can set the content and filename via processor properties. I couldn't find a Jira case (but feel free to write one) to add the ability to set the content of the flow file directly in GenerateFlowFile, which would allow you to skip the ReplaceText processor. Regards, Matt [1] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ReplaceText/index.html [2] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.GenerateFlowFile/index.html [3] https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates [4] https://gist.github.com/mattyb149/0c87a1a6f1d98a43c8d0 [5] https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.script.InvokeScriptedProcessor/index.html On Tue, Oct 18, 2016 at 9:14 AM, Alessio Palma <alessio.pa...@buongiorno.com> wrote: > Hello, is there a processor which allows to build a flowfile from a string? > Basically I have some huge queries and want to add them into the > workflow without load them from file or database. > > AP >