adamdebreceni commented on a change in pull request #1054:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1054#discussion_r618180791
##########
File path: extensions/standard-processors/processors/GenerateFlowFile.cpp
##########
@@ -61,6 +62,13 @@ core::Property GenerateFlowFile::UniqueFlowFiles(
core::PropertyBuilder::createProperty("Unique
FlowFiles")->withDescription("If true, each FlowFile that is generated will be
unique. If false, a random value will be generated and all FlowFiles")
->isRequired(false)->withDefaultValue<bool>(true)->build());
+core::Property GenerateFlowFile::CustomText(
+ core::PropertyBuilder::createProperty("Custom Text")
+ ->withDescription("If Data Format is text and if Unique FlowFiles is
false, then this custom text will be used as content of the generated FlowFiles
and the File Size will be ignored. "
+ "Finally, if Expression Language is used, evaluation
will be performed only once per batch of generated FlowFiles")
+ ->supportsExpressionLanguage(true)
Review comment:
we could emit a warning when Custom Text is set but it won't be used
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]