fgerlits commented on a change in pull request #1257:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1257#discussion_r802896521
##########
File path: extensions/standard-processors/processors/TailFile.cpp
##########
@@ -398,6 +410,19 @@ void TailFile::onSchedule(const
std::shared_ptr<core::ProcessContext> &context,
initial_start_position_ =
InitialStartPositions{utils::parsePropertyWithAllowableValuesOrThrow(*context,
InitialStartPosition.getName(), InitialStartPositions::values())};
}
+void TailFile::parseAttributeProviderServiceProperty(core::ProcessContext&
context) {
+ const auto attribute_provider_service_name =
context.getProperty(AttributeProviderService);
+ if (attribute_provider_service_name &&
!attribute_provider_service_name->empty()) {
+ std::shared_ptr<core::controller::ControllerService> controller_service =
context.getControllerService(*attribute_provider_service_name);
+ if (controller_service) {
+ attribute_provider_service_ =
dynamic_cast<minifi::controllers::AttributeProviderService*>(controller_service.get());
+ }
+ if (!attribute_provider_service_) {
+ throw minifi::Exception{ExceptionType::PROCESS_SCHEDULE_EXCEPTION,
utils::StringUtils::join_pack("Could not create AttributeProviderService: ",
*attribute_provider_service_name)};
+ }
Review comment:
done in
https://github.com/apache/nifi-minifi-cpp/pull/1257/commits/31c589dd30912c36ca3d6ec1ffea523d65e54703
--
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]