Kiran, There is an example of a Groovy script for an XML writer [1] in the unit tests for ScriptedRecordSetWriter, this should be a pretty good place to get started, but please let us know if you have any questions or issues in making it work.
Regards, Matt [1] https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/test/resources/groovy/test_record_writer_inline.groovy On Thu, Oct 12, 2017 at 6:55 PM, Kiran <kiran....@protonmail.com> wrote: > Hello, > > I have recently upgraded from NiFi 0.7.0 to 1.4.0 and the new version is > amazing. > > I'm trying to use the RecordWriter and RecordReader controller services to > convert my input CSV into XML. I have a CSVReader and a > ScriptedRecordSetWriter. > > My CSV is very simple: > "Header1","header2" > "Value1","value2" > > Im having a few issues trying to get the ScriptedRecordSetWriter working, > can anyone point me to some examples/documentation for writing the script? > > I'm using groovy to write the script and I've previously used the > ExecuteScript processor succesfully but I cant see to get the > ScriptedRecordSetWriter working. > > Thanks > > Kiran