Ferenc Gerlits created MINIFICPP-2561:
-----------------------------------------
Summary: 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
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)