pgyori commented on a change in pull request #4438:
URL: https://github.com/apache/nifi/pull/4438#discussion_r463154726
##########
File path:
nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/AbstractAzureDataLakeStorageProcessor.java
##########
@@ -146,8 +154,22 @@ public static DataLakeServiceClient
getStorageClient(PropertyContext context, Fl
return storageClient;
}
- @Override
- public Set<Relationship> getRelationships() {
- return RELATIONSHIPS;
+ private static class DirectoryValidator implements Validator {
+ @Override
+ public ValidationResult validate(String subject, String input,
ValidationContext context) {
+ ValidationResult.Builder builder = new ValidationResult.Builder()
+ .subject(DIRECTORY.getDisplayName())
+ .input(input);
+
+ if (context.isExpressionLanguagePresent(input)) {
+ builder.valid(true).explanation("Expression Language Present");
Review comment:
A runtime check (in onTrigger) for the actual value (after evaluating
the expression language) might be necessary.
----------------------------------------------------------------
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]