- 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 apply NiFi expression language on flow file content?
- Labels:
-
Apache NiFi
Created 08-17-2016 02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please help me with below scenarios.
- I have a flow file with a single record as data. Is there a way to apply expression language on content of flow file if I want to add a new flow file attribute using update attribute?
in my current approach I'm using extract text to assign the entire row as an attribute and then using update attribute to add new attribute with EL. I feel like it is not a correct approach. Please suggest a better way to do this.
- Also, Can we add one flow file's attribute to another flow file? ex: I want to extract some part of filename attribute of flow file A and use that to add an attribute for flow file B.
Created 08-17-2016 05:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) You can not apply EL to the content of a flow file, this is by design, The approach you mentioned with ExtractText is correct.
2) You might be able to do this with a custom processor, or possibly somehow using the distributed cache services, but in general a processor is operating on one flow file at a time.
Created 08-17-2016 05:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) You can not apply EL to the content of a flow file, this is by design, The approach you mentioned with ExtractText is correct.
2) You might be able to do this with a custom processor, or possibly somehow using the distributed cache services, but in general a processor is operating on one flow file at a time.
Created 09-29-2017 03:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Hanu V
Can u please share the attributes example or flow file as an example to explain how extract text to assign the entire row as an attribute ???
I am searching for it from a while.
