Re: how to retrieve a record reader from a controller service using python processor API?

2024-08-24 Thread Mark Payne
Hey Chris, If you haven’t already, I’d recommend taking a look at the Python Developer’s Guide [1], particularly the section on RecordTransforms. In short, you should not need a Record Reader in Python. Instead of FlowFileTransform, you would extend from RecordTransform. Then, your transform met

Re: how to retrieve a record reader from a controller service using python processor API?

2024-08-24 Thread chris snow
It seems I would need access to the ProcessSession but from what I can understand from Java processors that is passed in via the on_trigger method which doesn't appear to have been implemented for Python processors? On Sat, 24 Aug 2024 at 08:22, chris snow wrote: > I have a python component that

how to retrieve a record reader from a controller service using python processor API?

2024-08-24 Thread chris snow
I have a python component that users a controller service. I can't figure out from the java api docs [1] and python api source code [2] how to retrieve the record reader. Any suggestions? from nifiapi.properties import PropertyDescriptor, PythonPropertyValue from nifiapi.flowfiletransform import