Hello Tina, Can you provide more detail about what your script is doing? Are you encountering an issue getting the filename for a flowfile, or in setting the filename attribute on the new flowfile you are creating in your script? Could you post a link somewhere to your script?
On Fri, Nov 24, 2017 at 10:39 AM tzhu <[email protected]> wrote: > Hi, > > I want to know if I can access both attributes and contents and write them > in a new flowfile. > > I have some log files, which are in folders labelled by client names. My > task is to do some process on the log file contents and write the result to > a SQL table. I also need to include the client name as one of the column in > SQL table, and the information is only accessible from the file path. To > process the contents, I know I can use executescript and write a custom > script with streamcallback. But if I use "getAttribute" to access the > filename and write a flowfile, it does not seem to work. Any help or ideas? > > Thanks, > > Tina > > > > -- > Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/ >
