[
https://issues.apache.org/jira/browse/NIFI-6497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne updated NIFI-6497:
-----------------------------
Fix Version/s: 1.12.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
> Fix For: 1.12.0
>
> Time Spent: 1h
> 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)