You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by DEHAY Aurelien <au...@faurecia.com> on 2019/09/03 10:06:27 UTC
FreeFormTextWriter and flowfiles attributes
Classification\_- INTERNAL & PARTNERS
Hello.
FreeFormTextWriter is not reading the flowfile attributes when using ${}. I've try
${attributename} and ${anyAttribute('attributename')} but both fails silently and always return null (isNull is always true).
Can FreeFormTextWriter access attributes, or do I have to updateRecord with the attribute I want?
Thanks.
Aurélien DEHAY
This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.
Re: FreeFormTextWriter and flowfiles attributes
Posted by Mark Payne <ma...@hotmail.com>.
As Bryan said, it was not intended to provide access to FlowFile Attributes. There is, however, a Jira [1] to add this capability.
Thanks
-Mark
[1] https://issues.apache.org/jira/browse/NIFI-6497
On Sep 3, 2019, at 9:43 AM, Bryan Bende <bb...@gmail.com>> wrote:
FreeFormTextWriter allows you to use expression language to reference
fields in the record, so ${field1} ${field2} where field1 and field2
are part of the record.
If you are trying to access attributes then I think you need to use
UpdateRecord first.
On Tue, Sep 3, 2019 at 6:06 AM DEHAY Aurelien
<au...@faurecia.com>> wrote:
Classification\_- INTERNAL & PARTNERS
Hello.
FreeFormTextWriter is not reading the flowfile attributes when using ${}. I've try
${attributename} and ${anyAttribute('attributename')} but both fails silently and always return null (isNull is always true).
Can FreeFormTextWriter access attributes, or do I have to updateRecord with the attribute I want?
Thanks.
Aurélien DEHAY
This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.
Re: FreeFormTextWriter and flowfiles attributes
Posted by Bryan Bende <bb...@gmail.com>.
FreeFormTextWriter allows you to use expression language to reference
fields in the record, so ${field1} ${field2} where field1 and field2
are part of the record.
If you are trying to access attributes then I think you need to use
UpdateRecord first.
On Tue, Sep 3, 2019 at 6:06 AM DEHAY Aurelien
<au...@faurecia.com> wrote:
>
> Classification\_- INTERNAL & PARTNERS
>
> Hello.
>
> FreeFormTextWriter is not reading the flowfile attributes when using ${}. I've try
> ${attributename} and ${anyAttribute('attributename')} but both fails silently and always return null (isNull is always true).
>
> Can FreeFormTextWriter access attributes, or do I have to updateRecord with the attribute I want?
>
> Thanks.
>
> Aurélien DEHAY
>
> This electronic transmission (and any attachments thereto) is intended solely for the use of the addressee(s). It may contain confidential or legally privileged information. If you are not the intended recipient of this message, you must delete it immediately and notify the sender. Any unauthorized use or disclosure of this message is strictly prohibited. Faurecia does not guarantee the integrity of this transmission and shall therefore never be liable if the message is altered or falsified nor for any virus, interception or damage to your system.
>