I'm in a situation where I need to be able to set the name of a property using Expression Language. Is there any way to do that?
I try to create an attribute using an UpdateAttribute processor and put in ${property1} as the property name. Now, property1 is in reference to an existing attribute containing the value "property2". What I'd hope is that the flowfile has a new property added named "property2" but what I end up with is a new property literally named "${property1}".
Is this even possible? How to do this using JOlt Spec?
No, you cannot use Expression Language to dynamically set the property name of an UpdateAttribute processor directly.
Here's a workaround, use: