Right. This would be the use case that FetchFile [1] would help solve. [1] https://issues.apache.org/jira/browse/NIFI-631
On Wed, Sep 23, 2015 at 1:11 PM, Bryan Bende <bbe...@gmail.com> wrote: > Hi David, > > When you say "files I need to retrieve", are you referring to files on the > local filesystem where NiFi is running? > > If so, I am not aware of an existing processor that does that. Currently > we have GetFile which polls a directory, but that is not what you want here. > > It would be fairly straight forward to implement with a custom processor > though... You would read the incoming FlowFile content to get the filename, > then create a new FlowFile with your desired name, and write the content of > the local file to the new FlowFile. > > -Bryan > > > On Wed, Sep 23, 2015 at 11:16 AM, David Klim <davidkl...@hotmail.com> > wrote: > >> Hello, >> >> In a flow I am defining, I receive a flowfile containing json >> string. Using the splitJson processor I can extract some json paths >> pointing to some files I need to retrieve, but the filename is the content >> of the generated flowfile. So I would need to be able to read the content >> and generate a flowfile with that name instead. How could I do that? >> >> Thanks! >> >> >