Just to follow up, I added a unit test to put EL in a JOLT spec and it worked. I noticed you referred to "attrname" in your post but your spec refers to "firstname", is that a typo?
Regards, Matt On Thu, Aug 10, 2023 at 3:03 PM Matt Burgess <mattyb...@apache.org> wrote: > > I added file support to JoltTransformJSON under NIFI-4957 [1], a first > glance at the code seems like it should work, but I'll try to > reproduce it and follow up, thanks for bringing this to our attention! > > Regards, > Matt > > [1] https://issues.apache.org/jira/browse/NIFI-4957 > > On Thu, Aug 10, 2023 at 6:53 AM Matthew Hawkins <hawko2...@gmail.com> wrote: > > > > Hi devs, > > > > Using 1.23.0 I have a simple transform adding some flowfile attributes into > > the content. > > When putting the spec directly to the processor it works fine. If I have > > the spec in an external file however it seems to put in the literal string > > ${attrname} - ie the EL didn't process. > > > > Have I done something incorrectly or should I be now asking for an account > > to log a bug? > > > > Sample spec run using Chain DSL: > > > > [{ > > "operation": "shift", > > "spec": { > > "@": "values" > > }, > > { > > "operation": "default", > > "spec": { > > "firstname": "${firstname}" > > } > > } > > ] > > > > Kind regards, > > Matthew