markobean commented on code in PR #9617:
URL: https://github.com/apache/nifi/pull/9617#discussion_r1909299943


##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/GenerateFlowFile.java:
##########
@@ -71,12 +71,36 @@ public class GenerateFlowFile extends AbstractProcessor {
     public static final String DATA_FORMAT_BINARY = "Binary";
     public static final String DATA_FORMAT_TEXT = "Text";
 
+    public static final PropertyDescriptor VARIABLE_SIZE = new 
PropertyDescriptor.Builder()
+            .name("Variable File Size")
+            .description("The size of the FlowFile will be randomized between 
a minimum and maximum size value. 'Unique FlowFiles' must be set to true in 
order to achieve varying sizes.")
+            .required(true)

Review Comment:
   I was keeping in style with the existing File Size property. I can make not 
required if you prefer - and perhaps add some custom validation to be sure 
min/max size is specified when Variable File Size is true.



-- 
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]

Reply via email to