Support Questions

Find answers, ask questions, and share your expertise

How can we read a flowfile content with a python script ?

Explorer

the example is the next:

Ghilani_0-1671195696165.png

GenerateFlowFile content:

Ghilani_1-1671195844692.png

I want to clean the ETX character with a python script (Nifi wasn't able to clean it with replaceText), so I decided to pass the list to a python script to clean it, but am not sure how to read the Flowfile content. 

Ghilani_2-1671196414290.png

The list (my_list) should be passed as Flowfile to the python script.

0 REPLIES 0