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 2021/01/27 04:56:00 UTC

[jira] [Commented] (NIFI-8173) Parameter values should consistently allow for Expression Language

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

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

Commit 4ff9cddf159e974c7a5a5c9aa9e238c520d37dc3 in nifi's branch refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4ff9cdd ]

NIFI-8173, NIFI-8174: This closes #4784. Updated Parameter Contexts to allow for unsetting a parameter value / setting it to null. Allow Parameters to make use of Expression Language. Updated docs to illustrated how EL is evaluated

Signed-off-by: Joe Witt <jo...@apache.org>


> Parameter values should consistently allow for Expression Language
> ------------------------------------------------------------------
>
>                 Key: NIFI-8173
>                 URL: https://issues.apache.org/jira/browse/NIFI-8173
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Documentation &amp; Website
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.13.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The User Guide claims that Parameters cannot make use of Expression Language. And if a processor/controller service uses
> {code:java}
> context.getProperty(DESCRIPTOR).evaluateAttributeExpresssions().getValue(); {code}
> It does, in fact, not evaluate EL.
> However, UpdateAttribute uses a different API (ProcessContext.newPropertyValue(...) ) and in the API it DOES evaluate EL. We need to be consistent in how we are evaluating (or not) the Expression Language.
> We do see use cases where allowing Expression Language within Parameters will be very useful, so I would lean toward allowing EL to be used. This will require that the User Guide also be updated to clearly explain the context in which the EL will be evaluated.



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