Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to get the filename nifi
Labels:
- Labels:
-
Apache NiFi
Explorer
Created 07-11-2018 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Executing a script i give my csv a name using this comand:
flowFile = session.putAttribute(flowFile, "filename", filename);
Some steps later, i would like to change the name of the file.
¿How can i get this attribute (using JS in an execute script processor)?
I really appreciate your help
Thanks a lot
1 REPLY 1
Explorer
Created 07-11-2018 06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, i found it in a tutorial:
var filename = flowFile.getAttribute('filename');
