martinzink commented on code in PR #1926:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1926#discussion_r2000459010
##########
extensions/standard-processors/processors/UpdateAttribute.cpp:
##########
@@ -33,15 +34,7 @@ void UpdateAttribute::initialize() {
setSupportedRelationships(Relationships);
}
-void UpdateAttribute::onSchedule(core::ProcessContext& context,
core::ProcessSessionFactory&) {
- attributes_.clear();
- const auto &dynamic_prop_keys = context.getDynamicPropertyKeys();
- logger_->log_info("UpdateAttribute registering {} keys",
dynamic_prop_keys.size());
-
- for (const auto &key : dynamic_prop_keys) {
-
attributes_.emplace_back(core::PropertyDefinitionBuilder<>::createProperty(key).withDescription("auto
generated").supportsExpressionLanguage(true).build());
- logger_->log_info("UpdateAttribute registered attribute '{}'", key);
- }
+void UpdateAttribute::onSchedule(core::ProcessContext&,
core::ProcessSessionFactory&) {
Review Comment:
https://github.com/apache/nifi-minifi-cpp/pull/1926/commits/6969586829fe62ddcef9221bca449d2ad832b2a2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]