[
https://issues.apache.org/jira/browse/NIFI-7763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212610#comment-17212610
]
Matt Burgess commented on NIFI-7763:
------------------------------------
The {{allDelineatedValues}} method does a split() and map() already, I think
the only missing piece is being able to refer to the key as a variable. Rather
than introducing a new syntactic structure such as => , perhaps instead we
update the internal state/lookup with a well-known (and unlikely to override a
current value) key and set the value to the delineated value, then continue
with the evaluation.
> Split and map functions in NiFi Expression Language
> ---------------------------------------------------
>
> Key: NIFI-7763
> URL: https://issues.apache.org/jira/browse/NIFI-7763
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Malthe Borch
> Priority: Minor
>
> This is a proposal to extend the NiFi Expression Language with functions
> {{split}} and {{map}} that combine to allow expression such as:
> {{${keys:split(","):map(key => "t1.${key} = t2.${key}"):join(" and ")}}}
> That is, split the {{keys}} attribute and dynamically create a join condition
> based on a set of primary keys.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)