- nifi-datamelt-nar-1.0.nar - the Nifi nar file
- allCountries_100.txt - the sample input file
- nifi_test2_dev.zip - the sample ruleengine project file
- ExecuteRuleEngine_Example.xml - the sample Nifi flow template
Add the nar file to the Nifi lib folder and restart Nifi. Then add the template to nifi. Make sure you change the paths in the GetFile and PutFile processors. Make sure you change the path and filename for the ruleengine project zip file in the ExecuteRuleEngine processor. Finally, start the flow and drop the sample input file into the folder referenced in the GetFile processor.
The data from the input file will run through the flow. The rules in the ruleengine project file will be executed against the fields of the data rows and those rows which passed the business rules will be routed to the PutFile processor.
And here is a screenshot of the ExecuteRuleEngine processor configuration: