dan-s1 commented on code in PR #9785:
URL: https://github.com/apache/nifi/pull/9785#discussion_r1993445502


##########
nifi-extension-bundles/nifi-jolt-bundle/nifi-jolt-processors/src/main/java/org/apache/nifi/processors/jolt/JoltTransformJSON.java:
##########
@@ -55,11 +57,31 @@
 @Tags({"json", "jolt", "transform", "shiftr", "chainr", "defaultr", "removr", 
"cardinality", "sort"})
 @InputRequirement(InputRequirement.Requirement.INPUT_REQUIRED)
 @WritesAttribute(attribute = "mime.type", description = "Always set to 
application/json")
-@CapabilityDescription("Applies a list of Jolt specifications to the flowfile 
JSON payload. A new FlowFile is created "
-        + "with transformed content and is routed to the 'success' 
relationship. If the JSON transform "
-        + "fails, the original FlowFile is routed to the 'failure' 
relationship.")
+@CapabilityDescription("Applies a list of JOLT specifications to either the 
FlowFile JSON content or a specified FlowFile JSON attribute. "
+        + "When 'Json Source' is set to FLOW_FILE, the FlowFile content is 
transformed and the modified FlowFile is routed to 'success' relationship. "
+        + "When 'Json Source' is set to ATTRIBUTE, the specified attribute's 
value is transformed and updated in place, with the FlowFile routed to 
'success' relationship. "

Review Comment:
   ```suggestion
           + "When 'Json Source' is set to FLOW_FILE, the FlowFile content is 
transformed and the modified FlowFile is routed to the 'success' relationship. "
           + "When 'Json Source' is set to ATTRIBUTE, the specified attribute's 
value is transformed and updated in place, with the FlowFile routed to the 
'success' relationship. "
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to