[
https://issues.apache.org/jira/browse/MINIFICPP-2561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Zink updated MINIFICPP-2561:
-----------------------------------
Status: Patch Available (was: Open)
> 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
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)