This is an automated email from the ASF dual-hosted git repository.

kdoran pushed a commit to branch NIFI-15258
in repository https://gitbox.apache.org/repos/asf/nifi-api.git


The following commit(s) were added to refs/heads/NIFI-15258 by this push:
     new 977e476  NIFI-15621: Allow Configuration to Validate with 
ValidationContext (#69)
977e476 is described below

commit 977e4766152c959b2959cf64a89b2e96c326fbf3
Author: Bob Paulin <[email protected]>
AuthorDate: Thu Feb 19 12:54:07 2026 -0600

    NIFI-15621: Allow Configuration to Validate with ValidationContext (#69)
    
    * Currently this is only implemented for processors in schedule periods
    * Allows connector to pass Validation Context to be used instead of
    current parameter context.
---
 src/main/java/org/apache/nifi/components/ValidationContext.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/main/java/org/apache/nifi/components/ValidationContext.java 
b/src/main/java/org/apache/nifi/components/ValidationContext.java
index 031d39a..ff6fd68 100644
--- a/src/main/java/org/apache/nifi/components/ValidationContext.java
+++ b/src/main/java/org/apache/nifi/components/ValidationContext.java
@@ -200,4 +200,13 @@ public interface ValidationContext extends PropertyContext 
{
     default boolean isValidateConnections() {
         return true;
     }
+
+    /**
+     * Evaluates parameter references in the given value, substituting them 
with their resolved values
+     * using the parameter lookup associated with this ValidationContext.
+     *
+     * @param value the value potentially containing parameter references
+     * @return the value with parameter references substituted, or the 
original value if no parameters are available
+     */
+    String evaluateParameters(String value);
 }

Reply via email to