nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joew...@apache.org
Subject [38/50] [abbrv] incubator-nifi git commit: Adding a provenance event for EvaluateJsonPath when content is overwritten with selected expression.
Date Mon, 02 Mar 2015 04:04:17 GMT
Adding a provenance event for EvaluateJsonPath when content is overwritten with selected expression.


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

Branch: refs/heads/develop
Commit: 6a89745ec8646acfdacbf27511cb992c821c51b9
Parents: caed7f8
Author: Aldrin Piri <aldrinpiri@gmail.com>
Authored: Sat Feb 28 15:54:52 2015 -0500
Committer: Aldrin Piri <aldrinpiri@gmail.com>
Committed: Sat Feb 28 15:54:52 2015 -0500

----------------------------------------------------------------------
 .../java/org/apache/nifi/processors/standard/EvaluateJsonPath.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/6a89745e/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 f7caa68..ed0f07c 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
@@ -227,6 +227,8 @@ public class EvaluateJsonPath extends AbstractJsonPathProcessor {
                             }
                         }
                     });
+                    processSession.getProvenanceReporter().modifyContent(flowFile,
+                            "Replaced content with result of expression " + jsonPathExp.getPath());
                     break;
             }
         }


Mime
View raw message