lordgamez commented on a change in pull request #1126:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1126#discussion_r671062084



##########
File path: docker/test/integration/resources/python/add_attribute_to_flowfile.py
##########
@@ -0,0 +1,13 @@
+def describe(processor):
+    processor.setDescription("Adds an attribute to your flow files")
+
+
+def onInitialize(processor):
+    processor.setSupportsDynamicProperties()
+
+
+def onTrigger(context, session):
+    flow_file = session.get()
+    if flow_file is not None:
+        flow_file.addAttribute("Python attribute", "attributevalue")
+        session.transfer(flow_file, REL_SUCCESS)  # noqa: E128

Review comment:
       There is no problem here as we added it to the built in symbols. Only 
that my editor did not realize it. Removed it in 
00880a413ff046969cd22b45be83873a30d0b5f9




-- 
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