[
https://issues.apache.org/jira/browse/MINIFICPP-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Szasz resolved MINIFICPP-1197.
-------------------------------------
Resolution: Fixed
We have a pretty good example processor now:
examples/scripts/python/reverse_flow_file_content.py
> Update ExampleProcessor.py to Show More Features of MiNiFiCPP Python
> --------------------------------------------------------------------
>
> Key: MINIFICPP-1197
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1197
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Affects Versions: main
> Reporter: James Medel
> Priority: Major
>
> I feel we could use the python *ExampleProcessor* as a processor template to
> introduce people to the various features that are available when you build
> custom Python Processors in MiNiFi CPP. MiNiFi CPP's Python processor feature
> is a great way to get started with developing processors and it can be used
> for rapid prototyping. Currently, the ExampleProcessor.py shows how to add a
> Flow File attribute. We could update the processor to include how to read
> content from incoming flow files using session.write(flow_file,
> input_stream_cb) and how to write the content using session.write(flow_file,
> output_stream_cb) and more features defined in MiNiFi CPP PythonBindings.h.
>
> My suggestion is we update:
> -
> [nifi-minifi-cpp/extensions/script/ExampleProcessor.py|[https://github.com/apache/nifi-minifi-cpp/blob/master/extensions/script/ExampleProcessor.py]]
>
> References:
> -
> [nifi-minifi-cpp/extensions/script/python/PythonBindings.h|[https://github.com/apache/nifi-minifi-cpp/blob/master/extensions/script/python/PythonBindings.h]]
> -
> [nifi-minifi-cpp/extensions/script/python/ExecutePythonProcessor.h|[https://github.com/apache/nifi-minifi-cpp/blob/master/extensions/script/python/ExecutePythonProcessor.h]]
> -
> [nifi-minifi-cpp/extensions/script/python/PyProcessSession.h|[https://github.com/apache/nifi-minifi-cpp/blob/master/extensions/script/python/PyProcessSession.h]]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)