4
votes

Is there any option to write an attribute of a flow file as a content without using the AttributesToJSON processor?

2

2 Answers

8
votes

Depends what the format of the content is and where you want the attribute to go.

If you just want simply get an attribute value in the content and replace whatever was there, then ReplaceText with the Replacement Value of ${my.attribute} will make the flow file content be the value of my.attribute.

0
votes

For the Json you can use JoltTransform (JoltTransformJSON or JoltTransformRecord)