NIFI-309 adding a value to @DynamicProperty
this lets you describe the name, the value, and what the two together mean


Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/c98ddca2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/c98ddca2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/c98ddca2

Branch: refs/heads/develop
Commit: c98ddca2eb10d4b73ba8a7a7d017983e624ea21b
Parents: fd89849
Author: danbress <[email protected]>
Authored: Wed Mar 18 15:52:57 2015 -0400
Committer: danbress <[email protected]>
Committed: Fri Mar 20 09:51:20 2015 -0400

----------------------------------------------------------------------
 .../org/apache/nifi/annotation/behavior/DynamicProperty.java | 8 +++++++-
 .../nifi/documentation/html/HtmlDocumentationWriter.java     | 2 ++
 .../nifi/documentation/example/FullyDocumentedProcessor.java | 2 +-
 .../org/apache/nifi/processors/standard/DistributeLoad.java  | 3 ++-
 .../apache/nifi/processors/standard/EvaluateJsonPath.java    | 3 ++-
 .../nifi/processors/standard/EvaluateRegularExpression.java  | 2 +-
 .../org/apache/nifi/processors/standard/EvaluateXPath.java   | 3 ++-
 .../org/apache/nifi/processors/standard/EvaluateXQuery.java  | 3 ++-
 .../org/apache/nifi/processors/standard/ExecuteProcess.java  | 2 +-
 .../apache/nifi/processors/standard/HandleHttpResponse.java  | 2 +-
 .../org/apache/nifi/processors/standard/HashAttribute.java   | 3 +--
 .../java/org/apache/nifi/processors/standard/InvokeHTTP.java | 2 +-
 .../java/org/apache/nifi/processors/standard/PutFTP.java     | 4 ++--
 .../java/org/apache/nifi/processors/standard/PutSFTP.java    | 2 +-
 .../apache/nifi/processors/standard/RouteOnAttribute.java    | 3 ++-
 .../org/apache/nifi/processors/standard/RouteOnContent.java  | 3 ++-
 .../org/apache/nifi/processors/standard/TransformXml.java    | 3 ++-
 .../apache/nifi/processors/attributes/UpdateAttribute.java   | 3 ++-
 18 files changed, 34 insertions(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperty.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperty.java
 
b/nifi/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperty.java
index 7b2150d..a07817c 100644
--- 
a/nifi/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperty.java
+++ 
b/nifi/nifi-api/src/main/java/org/apache/nifi/annotation/behavior/DynamicProperty.java
@@ -36,7 +36,13 @@ public @interface DynamicProperty {
      *         language
      */
     public boolean supportsExpressionLanguage() default false;
-
+    
+    /**
+     * A description of what the value of the dynamic property may be
+     * @return a description of what the value of the dynamic property may be
+     */
+    public String value();
+    
     /**
      * Provides a description of what the meaning of the property is, and what 
the expected values are 
      * @return a description of what the meaning of the property is, and what 
the expected values are

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
index 6fafb05..c4261a1 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
@@ -374,11 +374,13 @@ public class HtmlDocumentationWriter implements 
DocumentationWriter {
             xmlStreamWriter.writeStartElement("table");
             xmlStreamWriter.writeStartElement("tr");
             writeSimpleElement(xmlStreamWriter, "th", "Name");
+            writeSimpleElement(xmlStreamWriter, "th", "Value");
             writeSimpleElement(xmlStreamWriter, "th", "Description");
             xmlStreamWriter.writeEndElement();
             for (final DynamicProperty dynamicProperty : dynamicProperties) {
                 xmlStreamWriter.writeStartElement("tr");    
                 writeSimpleElement(xmlStreamWriter, "td", 
dynamicProperty.name());
+                writeSimpleElement(xmlStreamWriter, "td", 
dynamicProperty.value());
                 xmlStreamWriter.writeStartElement("td");
                 xmlStreamWriter.writeCharacters(dynamicProperty.description());
                 if (dynamicProperty.supportsExpressionLanguage()) {

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java
 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java
index 782d305..9a5c398 100644
--- 
a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java
+++ 
b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java
@@ -45,7 +45,7 @@ import org.apache.nifi.processor.util.StandardValidators;
 @WritesAttributes({@WritesAttribute(attribute="first", description="this is 
the first attribute i write"), @WritesAttribute(attribute="second")})
 @ReadsAttribute(attribute = "incoming", description="this specifies the format 
of the thing")
 @SeeAlso(value={FullyDocumentedControllerService.class, 
FullyDocumentedReportingTask.class}, 
classNames={"org.apache.nifi.processor.ExampleProcessor"})
-@DynamicProperty(name="the relationship to route to", 
supportsExpressionLanguage=true, description="some XPath")
+@DynamicProperty(name="Relationship Name", supportsExpressionLanguage=true, 
value="some XPath", description="Routes FlowFiles to relationships based on 
XPath")
 @DynamicRelationships(name="name from dynamic property", description="all 
files that match the properties XPath")
 public class FullyDocumentedProcessor extends AbstractProcessor {
 

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
index a0dcc79..f053ce3 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DistributeLoad.java
@@ -63,7 +63,8 @@ import org.apache.nifi.processor.util.StandardValidators;
         + "strategy, the default is to assign each destination a weighting of 
1 (evenly distributed). However, optional properties"
         + "can be added to the change this; adding a property with the name 
'5' and value '10' means that the relationship with name "
         + "'5' will be receive 10 FlowFiles in each iteration instead of 1.")
-@DynamicProperty(name="The relationship name(positive number)", 
description="The number of FlowFiles to this relationship per iteration")
+@DynamicProperty(name="The relationship name(positive number)", value="The 
relationship Weight(positive number)", description="adding a property with the 
name '5' and value '10' means that the relationship with name "
+        + "'5' will be receive 10 FlowFiles in each iteration instead of 1.")
 @DynamicRelationships(name="A number 1..<Number Of Relationships>", 
description="FlowFiles are sent to this relationship per the <Distribution 
Strategy>")
 public class DistributeLoad extends AbstractProcessor {
 

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
index e6356f0..c29a4d2 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
@@ -66,7 +66,8 @@ import java.util.concurrent.ConcurrentMap;
         + "If Destination is 'flowfile-content' and the JsonPath does not 
evaluate to a defined path, the FlowFile will be routed to 'unmatched' without 
having its contents modified. "
         + "If Destination is flowfile-attribute and the expression matches 
nothing, attributes will be created with "
         + "empty strings as the value, and the FlowFile will always be routed 
to 'matched.'")
-@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute')", description="JsonPath expression")
+@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute')", value="A JsonPath expression", description="If 
<Destination>='flowfile-attribute' then that FlowFile attribute " + 
+        "will be set to any JSON objects that match the JsonPath.  If 
<Destination>='flowfile-content' then the FlowFile content will be updated to 
any JSON objects that match the JsonPath.")
 public class EvaluateJsonPath extends AbstractJsonPathProcessor {
 
     public static final String DESTINATION_ATTRIBUTE = "flowfile-attribute";

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateRegularExpression.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateRegularExpression.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateRegularExpression.java
index e5598d4..35436ca 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateRegularExpression.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateRegularExpression.java
@@ -64,7 +64,7 @@ import org.apache.commons.lang3.StringUtils;
         + "If any provided Regular Expression matches, the FlowFile(s) will be 
routed to 'matched'. "
         + "If no provided Regular Expression matches, the FlowFile will be 
routed to 'unmatched' and no attributes will be applied to the FlowFile.")
 @Deprecated
-@DynamicProperty(name="A FlowFile attribute", description="A regular 
expression with exactly one capturing group")
+@DynamicProperty(name="A FlowFile attribute", value="A regular expression with 
exactly one capturing group", description="Will update the specified FlowFile 
attribute with the group captured by the regular expression")
 public class EvaluateRegularExpression extends AbstractProcessor {
 
     public static final PropertyDescriptor CHARACTER_SET = new 
PropertyDescriptor.Builder()

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
index 5db3b0b..7852364 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXPath.java
@@ -94,7 +94,8 @@ import org.xml.sax.InputSource;
         + "flowfile-attribute and the expression matches nothing, attributes 
will be created with empty strings as the value, and the "
         + "FlowFile will always be routed to 'matched'")
 @WritesAttribute(attribute="user-defined", description="This processor adds 
user-defined attributes if the <Destination> property is set to 
flowfile-attribute.")
-@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute'", description="An XPath expression")
+@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute'", value="An XPath expression", description="If 
<Destination>='flowfile-attribute' " + 
+"then the FlowFile attribute is set to the result of the XPath Expression.  If 
<Destination>='flowfile-content' then the FlowFile content is set to the result 
of the XPath Expression.")
 public class EvaluateXPath extends AbstractProcessor {
 
     public static final String DESTINATION_ATTRIBUTE = "flowfile-attribute";

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXQuery.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXQuery.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXQuery.java
index 143c6b4..8bc1f9f 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXQuery.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateXQuery.java
@@ -95,7 +95,8 @@ import org.xml.sax.InputSource;
         + "Destination is 'flowfile-attribute' and the XQueries matche 
nothing, no attributes will be applied to the "
         + "FlowFile.")
 @WritesAttribute(attribute="user-defined", description="This processor adds 
user-defined attributes if the <Destination> property is set to 
flowfile-attribute .")
-@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute'", description="An XQuery")
+@DynamicProperty(name="A FlowFile attribute(if <Destination> is set to 
'flowfile-attribute'", value="An XQuery", description="If 
<Destination>='flowfile-attribute' " + 
+        "then the FlowFile attribute is set to the result of the XQuery.  If 
<Destination>='flowfile-content' then the FlowFile content is set to the result 
of the XQuery.")
 public class EvaluateXQuery extends AbstractProcessor {
 
     public static final String DESTINATION_ATTRIBUTE = "flowfile-attribute";

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java
index 319cb2c..61cf317 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteProcess.java
@@ -62,7 +62,7 @@ import org.apache.nifi.processor.util.StandardValidators;
 @CapabilityDescription("Runs an operating system command specified by the user 
and writes the output of that command to a FlowFile. If the command is expected 
"
         + "to be long-running, the Processor can output the partial data on a 
specified interval. When this option is used, the output is expected to be in 
textual "
         + "format, as it typically does not make sense to split binary data on 
arbitrary time-based intervals.")
-@DynamicProperty(name="An environment variable name", description="An 
environment variable value")
+@DynamicProperty(name="An environment variable name", value="An environment 
variable value", description="These environment variables are passed to the 
process spawned by this Processor")
 public class ExecuteProcess extends AbstractProcessor {
 
     public static final PropertyDescriptor COMMAND = new 
PropertyDescriptor.Builder()

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
index a83b4ce..9c7cfaf 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HandleHttpResponse.java
@@ -41,7 +41,7 @@ import org.apache.nifi.processor.util.StandardValidators;
 
 @Tags({"http", "https", "response", "egress", "web service"})
 @CapabilityDescription("Sends an HTTP Response to the Requestor that generated 
a FlowFile. This Processor is designed to be used in conjunction with the 
HandleHttpRequest in order to create a web service.")
-@DynamicProperty(name="An HTTP header name", description="An HTTP header 
value")
+@DynamicProperty(name="An HTTP header name", value="An HTTP header value", 
description="These HTTPHeaders are set in the HTTP Response")
 public class HandleHttpResponse extends AbstractProcessor {
     public static final Pattern NUMBER_PATTERN = Pattern.compile("[0-9]+");
     public static final String HTTP_CONTEXT_ID = "http.context.identifier";

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
index 9c5c0b5..816f98c 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/HashAttribute.java
@@ -116,8 +116,7 @@ import org.apache.nifi.processor.util.StandardValidators;
         + "to be used as part of the hash. If the regular expression contains 
a capturing group, only the value of the capturing "
         + "group will be used.")
 @WritesAttribute(attribute="<Hash Value Attribute Key>", description="This 
Processor adds an attribute whose value is the result of Hashing the existing 
FlowFile attributes. The name of this attribute is specified by the <Hash Value 
Attribute Key> property.")
-@DynamicProperty(name="A flowfile attribute key for attribute inspection", 
description="A " +
- "valid regular expression. This regular expression is evaluated against the " 
+
+@DynamicProperty(name="A flowfile attribute key for attribute inspection", 
value="A Regular Expression", description="This regular expression is evaluated 
against the " +
  "flowfile attribute values. If the regular expression contains a capturing " +
  "group, the value of that group will be used when comparing flow file " +
  "attributes. Otherwise, the original flow file attribute's value will be used 
" +

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
index dda2950..a2bab1d 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
@@ -78,7 +78,7 @@ import org.joda.time.format.DateTimeFormatter;
         @WritesAttribute(attribute = "invokehttp.request.url", description = 
"The request URL"),
         @WritesAttribute(attribute = "invokehttp.tx.id", description = "The 
transaction ID that is returned after reading the response"),
         @WritesAttribute(attribute = "invokehttp.remote.dn", description = 
"The DN of the remote server") })
-@DynamicProperty(name="Trusted Hostname)", description="Bypass the normal 
truststore hostname verifier to allow the specified (single) remote hostname as 
trusted "
+@DynamicProperty(name="Trusted Hostname", value="A hostname", 
description="Bypass the normal truststore hostname verifier to allow the 
specified (single) remote hostname as trusted "
         + "Enabling this property has MITM security implications, use wisely. 
Only valid with SSL (HTTPS) connections.")
 public final class InvokeHTTP extends AbstractProcessor {
 

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java
index f8ac6bf..e8fec4d 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutFTP.java
@@ -44,8 +44,8 @@ import org.apache.nifi.processors.standard.util.FTPTransfer;
 @Tags({"remote", "copy", "egress", "put", "ftp", "archive", "files"})
 @CapabilityDescription("Sends FlowFiles to an FTP Server")
 @SeeAlso(GetFTP.class)
-@DynamicProperties({@DynamicProperty(name="pre.cmd.*", description="Not used"),
-    @DynamicProperty(name="post.cmd.*", description="Not used")})
+@DynamicProperties({@DynamicProperty(name="pre.cmd._____", value="Not used", 
description="The command specified in the key will be executed before doing a 
put"),
+    @DynamicProperty(name="post.cmd._____", value="Not used", description="The 
command specified in the key will be executed after doing a put")})
 public class PutFTP extends PutFileTransfer<FTPTransfer> {
 
     private static final Pattern PRE_SEND_CMD_PATTERN = 
Pattern.compile("^pre\\.cmd\\.(\\d+)$");

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSFTP.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSFTP.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSFTP.java
index dffbd14..300878f 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSFTP.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutSFTP.java
@@ -34,7 +34,7 @@ import org.apache.nifi.processors.standard.util.SFTPTransfer;
 @Tags({"remote", "copy", "egress", "put", "sftp", "archive", "files"})
 @CapabilityDescription("Sends FlowFiles to an SFTP Server")
 @SeeAlso(GetSFTP.class)
-@DynamicProperty(name="Disable Directory Listing", description="Disables 
directory listings before operations which might fail, such as configurations 
which create directory structures.")
+@DynamicProperty(name="Disable Directory Listing", value="true or false", 
description="Disables directory listings before operations which might fail, 
such as configurations which create directory structures.")
 public class PutSFTP extends PutFileTransfer<SFTPTransfer> {
 
     private List<PropertyDescriptor> properties;

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
index 11d8615..caab595 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnAttribute.java
@@ -67,7 +67,8 @@ import org.apache.nifi.processor.util.StandardValidators;
 @SupportsBatching
 @Tags({"attributes", "routing", "Attribute Expression Language", "regexp", 
"regex", "Regular Expression", "Expression Language"})
 @CapabilityDescription("Routes FlowFiles based on their Attributes using the 
Attribute Expression Language")
-@DynamicProperty(name="Relationship", description="Attribute Expression 
Language", supportsExpressionLanguage=true)
+@DynamicProperty(name="Relationship Name", value="Attribute Expression 
Language", supportsExpressionLanguage=true, description="Routes FlowFiles whose 
" + 
+"attributes match the Attribute Expression Language specified in the Dynamic 
Property Value to the Relationship specified in the Dynamic Property Key")
 @DynamicRelationships(name="Name from Dynamic Property", 
description="FlowFiles that match the Dynamic Property's Attribute Expression 
Language")
 public class RouteOnAttribute extends AbstractProcessor {
 

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnContent.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnContent.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnContent.java
index b95402d..a7b1fc4 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnContent.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteOnContent.java
@@ -60,7 +60,8 @@ import org.apache.nifi.util.IntegerHolder;
         + "of the property is the name of the relationship and the value is a 
Regular Expression to match against the FlowFile "
         + "content. User-Defined properties do support the Attribute 
Expression Language, but the results are interpreted as "
         + "literal values, not Regular Expressions")
-@DynamicProperty(name="Relationship", description="A Regular Expression", 
supportsExpressionLanguage=true)
+@DynamicProperty(name="Relationship Name", value="A Regular Expression", 
supportsExpressionLanguage=true, description="Routes FlowFiles whose " + 
+        "content matches the regular expressoin defined by Dynamic Property's 
value to the Relationship defined by the Dynamic Property's key")
 @DynamicRelationships(name="Name from Dynamic Property", 
description="FlowFiles that match the Dynamic Property's Regular Expression")
 public class RouteOnContent extends AbstractProcessor {
 

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java
 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java
index 778fb29..ff37902 100644
--- 
a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java
+++ 
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/TransformXml.java
@@ -65,7 +65,8 @@ import org.apache.nifi.util.Tuple;
 @CapabilityDescription("Applies the provided XSLT file to the flowfile XML 
payload. A new FlowFile is created "
         + "with transformed content and is routed to the 'success' 
relationship. If the XSL transform "
         + "fails, the original FlowFile is routed to the 'failure' 
relationship")
-@DynamicProperty(name="An XSLT transform parameter name", description="An XSLT 
transform parameter value", supportsExpressionLanguage=true)
+@DynamicProperty(name="An XSLT transform parameter name", value="An XSLT 
transform parameter value", supportsExpressionLanguage=true, 
+description="These XSLT parameters are passed to the transformer")
 public class TransformXml extends AbstractProcessor {
 
     public static final PropertyDescriptor XSLT_FILE_NAME = new 
PropertyDescriptor.Builder()

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/c98ddca2/nifi/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
----------------------------------------------------------------------
diff --git 
a/nifi/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
 
b/nifi/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
index 1933ab8..afdc4db 100644
--- 
a/nifi/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
+++ 
b/nifi/nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
@@ -113,7 +113,8 @@ import org.apache.commons.lang3.StringUtils;
 @SideEffectFree
 @Tags({"attributes", "modification", "update", "Attribute Expression 
Language"})
 @CapabilityDescription("Updates the Attributes for a FlowFile by using the 
Attribute Expression Language")
-@DynamicProperty(name="A FlowFile attribute to update", description="The value 
to set it to", supportsExpressionLanguage=true)
+@DynamicProperty(name="A FlowFile attribute to update", value="The value to 
set it to", supportsExpressionLanguage=true, description="Updates a " + 
+"FlowFile attribute specified by the Dynamic Property's key with the value 
specified by the Dynamic Property's value")
 public class UpdateAttribute extends AbstractProcessor implements Searchable {
 
     private final AtomicReference<Criteria> criteriaCache = new 
AtomicReference<>(null);

Reply via email to