You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Martin Zink (Jira)" <ji...@apache.org> on 2025/04/22 13:04:00 UTC

[jira] [Assigned] (MINIFICPP-2561) Properties with Allowed Values cannot support Expression Language

     [ https://issues.apache.org/jira/browse/MINIFICPP-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Zink reassigned MINIFICPP-2561:
--------------------------------------

    Assignee: Martin Zink

> Properties with Allowed Values cannot support Expression Language
> -----------------------------------------------------------------
>
>                 Key: MINIFICPP-2561
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2561
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Ferenc Gerlits
>            Assignee: Martin Zink
>            Priority: Major
>
> If a property has a set of Allowed Values, it cannot support Expression Language, because when we call {{setProperty()}} in {{{}StructuredConfiguration::parseSingleProperty(){}}}, an EL expression like {{{}$\{my_attribute{}}}} will throw an exception as it is not one of the listed Allowed Values.
> Maybe we could skip the Allowed Values test in {{ConfigurableComponentImpl::setProperty()}} if Supports Expression Language is true, and move the test to {{{}ProcessContextExpr::getProperty(){}}}. [This is just an idea, I haven't tested if it would work.]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)