turcsanyip commented on a change in pull request #5136:
URL: https://github.com/apache/nifi/pull/5136#discussion_r661709627



##########
File path: 
nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java
##########
@@ -667,6 +667,46 @@ public ValidationResult validate(final String subject, 
final String input, final
         };
     }
 
+    public static Validator createRegexMatchingValidatorWithEL(final Pattern 
pattern, final String validationMessage) {
+        return new Validator() {
+            @Override
+            public ValidationResult validate(final String subject, final 
String input, final ValidationContext context) {
+                final PropertyValue prefixProperty = 
context.newPropertyValue(input);
+                final String prefix;

Review comment:
       @timeabarna I retested the processor with a simple flow and it works 
properly.
   
   A minor question: What does "prefix" mean in this context?




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