@Vishwanath JoshiThere are several processors you can use to write the attributes values to the content of the FlowFile which you can then send using putMongo processor. Here are a few examples
-
ReplaceText processor - You can use this to replace all content with the values from one or more FlowFile attributes using the NiFi expression language in the "Replacement Value" configuration property and the "Always replace" configuration option.
-
AttributesToJson processor - You use a Java regular expression to identify which FlowFile attributes will be used to generate json content and destination configuration of "flowfile content".
-
AttributesToCSV processor - You use a Java regular expression to identify which FlowFile attributes will be used to generate csv content and destination configuration of "flowfile content".
-
*** Link to details on NiFi Expression Language:
https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
-
Thank you,
Matt
-
If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.