Re: Dynamic Attribute Naming

2021-01-06 Thread Matt Burgess
Eric, I don't believe it's possible in NiFi per se, because you'd have to set it via a property, and properties have unique and static names so EL is not evaluated on them. However you can use Groovy with ExecuteScript to do this, check out [1] under the recipe "Add an attribute to a flow file".

Dynamic Attribute Naming

2021-01-05 Thread Eric Secules
Hello, I was wondering if it's possible to name an attribute based on an EL statement like MyAttr.${fragment.index} Then when flow files are merged back together all the attributes are preserved. Thanks, Eric