You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/05/18 19:13:00 UTC

[jira] [Commented] (NIFI-6497) Allow FreeFormTextRecordSetWriter to access FlowFile Attributes

    [ https://issues.apache.org/jira/browse/NIFI-6497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17110547#comment-17110547 ] 

ASF subversion and git services commented on NIFI-6497:
-------------------------------------------------------

Commit a3cc2c58ff05e8d0008a5953c976d7ae3169c2d7 in nifi's branch refs/heads/master from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a3cc2c5 ]

NIFI-6497: Allow FreeFormTextRecordSetWriter to access FlowFile Attributes

This closes #4275.

Signed-off-by: Mark Payne <ma...@hotmail.com>


> Allow FreeFormTextRecordSetWriter to access FlowFile Attributes
> ---------------------------------------------------------------
>
>                 Key: NIFI-6497
>                 URL: https://issues.apache.org/jira/browse/NIFI-6497
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: DamienDEOM
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
>  
> I'm trying to convert json records to database insert statements using the Splitrecords processor
> To do so, I use FreeFormTextRecordSetWriter controller with following text:
> {{INSERT INTO p17128.bookmark_users values ('${username}', '${firstname:urlEncode()}', '${user_id}', '${accountnumber}', '${lastname:urlEncode()}', '${nominal_time}'}})
> The resulting statement values are valid for all fields contained in Record reader.
> Now I'd like to add a field that is a flowfile attribute ( ${nominal_time} ), but I always get an empty string in the output.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)