nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Percivall <joeperciv...@yahoo.com.INVALID>
Subject Re: @DynamicProperty annotation of more than one property?
Date Sat, 16 Apr 2016 00:39:54 GMT
Hello Russell,

The annotation you are looking for is @DynamicProperties[1] an example of it in use is in
the PutFTP processor[2].

[1] https://github.com/apache/nifi/blob/e4b7e47836edf47042973e604005058c28eed23b/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperties.java
[2] https://github.com/apache/nifi/blob/e4b7e47836edf47042973e604005058c28eed23b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java#L50


Hope that helps,
Joe

- - - - - - 
Joseph Percivall
linkedin.com/in/Percivall
e: joepercivall@yahoo.com



On Friday, April 15, 2016 7:46 PM, Russell Bateman <russell.bateman@perfectsearchcorp.com>
wrote:



What's the syntax for defining more than one dynamic property for a 
processor? I need to specify up to three distinctly different ones and 
attempting to do it all in

@DynamicProperty(
     name = "{blah,blah2,blah3}",
     value = "{\"blah-value\",\"blah2-value\",\"blah3-value\"}",
supportsExpressionLanguage = false,
     description = "Big blah, blah, blah..."
)

is under-powered.

Many thanks.

Mime
View raw message