Adding processor documentation for EvaluateJsonPath and SplitJson Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/b1f97133 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/b1f97133 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/b1f97133 Branch: refs/heads/NIFI-353 Commit: b1f971335a464f8de34d4f360327f1c9e5e02bbe Parents: 162f02b Author: Aldrin Piri Authored: Sun Mar 1 00:13:22 2015 -0500 Committer: Aldrin Piri Committed: Sun Mar 1 00:13:22 2015 -0500 ---------------------------------------------------------------------- .../index.html | 150 +++++++++++++++++++ .../index.html | 79 ++++++++++ 2 files changed, 229 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/b1f97133/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html new file mode 100644 index 0000000..055a794 --- /dev/null +++ b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html @@ -0,0 +1,150 @@ + + + + + + EvaluateJsonPath + + + + + +

Description:

+ +

+ Evaluates one or more JsonPath expressions against the content of a FlowFile. The results of those expressions are + assigned to FlowFile Attributes or are written to the content of the FlowFile itself, depending on configuration of + the Processor. JsonPaths are entered by adding user-defined properties; the name of the property maps to the + Attribute Name into which the result will be placed (if the Destination is flowfile-attribute; otherwise, the + property name is ignored). The value of the property must be a valid JsonPath expression. If the JsonPath evaluates + to a JSON array or JSON object and the Return Type is set to 'scalar' the FlowFile will be unmodified and will be + routed to failure. A Return Type of JSON can return scalar values if the provided JsonPath evaluates to the + specified value and will be routed as a match. 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.' + +

+ +

+ Properties: +

+ +

+ In the list below, the names of required properties appear in bold. + Any other properties (not in bold) are considered optional. If a + property has a default value, it is indicated. If a property + supports the use of the NiFi Expression Language (or simply, + "expression language"), that is also indicated. +

+ +

+ Modifies Attributes: +

+ +

+ This processor adds user-defined attributes if the <Destination> property is set to + flowfile-attribute. +

+ + + + +

+ Relationships: +

+ +

+ + http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/b1f97133/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.SplitJson/index.html ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.SplitJson/index.html b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.SplitJson/index.html new file mode 100644 index 0000000..6fc8e61 --- /dev/null +++ b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/resources/docs/org.apache.nifi.processors.standard.SplitJson/index.html @@ -0,0 +1,79 @@ + + + + + + SplitJson + + + + + + +

Description:

+ +

+ This processor splits a JSON File into multiple, separate FlowFiles for an array element specified by a JsonPath + expression. + Each generated FlowFile is comprised of an element of the specified array and transferred to relationship 'split,' + with the original file transferred to the 'original' relationship. If the specified JsonPath is not found or + does not evaluate to an array element, the original file is routed to 'failure' and no files are generated. +

+ +Properties: +

+ +

+ In the list below, the names of required properties appear in bold. Any other properties (not in bold) are + considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi + Expression Language (or simply, "expression language"), that is also indicated. +

+ + +

+ Relationships: +

+ + + +