Hi, very junior developer new to nifi and using groovy.
The goal I'm trying achieve is I have a csv file which holds data on what files need to be processed. My flow files consists of all the files that are coming in from a TCP stream and I need to compare the csv with these to then route them in specific directions. I first tried to do this extracting the csv and using update attribute but then got stuck as the csv and data files had different attributes. After finding the scripting cook book and matts blog which has helped a mile. I've managed to make this script which does pull out the correct files (when using local test data with some lines commented out) but I've yet to get it to work in nifi