markap14 commented on a change in pull request #3559: NIFI-1624 Allow
ExtractText processor to fail if max. capture group l…
URL: https://github.com/apache/nifi/pull/3559#discussion_r314054492
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractText.java
##########
@@ -107,12 +118,26 @@
public static final PropertyDescriptor MAX_CAPTURE_GROUP_LENGTH = new
PropertyDescriptor.Builder()
.name("Maximum Capture Group Length")
- .description("Specifies the maximum number of characters a given
capture group value can have. Any characters beyond the max will be
truncated.")
+ .description("Specifies the maximum number of characters a given
capture group value can have. "
+ + "If characters beyond that limit are present, they will
be either be truncated or the processor will fail, "
+ + "depending on the value of
CAPTURE_GROUP_LENGTH_EXCESS_POLICY.")
.required(false)
.defaultValue("1024")
.addValidator(StandardValidators.POSITIVE_INTEGER_VALIDATOR)
.build();
+ public static final PropertyDescriptor CAPTURE_GROUP_LENGTH_EXCESS_POLICY
= new PropertyDescriptor.Builder()
+ .name("Capture Group Length Excess Policy")
Review comment:
The typical verbiage used in NiFi processors is a 'strategy' rather than a
'policy'. Not a big deal but would probably stick with that just for
consistency. "Capture Group Length Exceeded Strategy" for example.
----------------------------------------------------------------
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]
With regards,
Apache Git Services