Eric, I have, specifically for the unit tests. You can find the scaffolding at [1] and the actual script at [2] (it's trivial but should have all the boilerplate). Also it may interest you to know that I have put up a Pull Request for the nifi-record-path addition to the scripting bundle [3] :)
Regards, Matt [1] https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/test/groovy/org/apache/nifi/record/script/ScriptedRecordSetWriterTest.groovy [2] 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 [3] https://github.com/apache/nifi/pull/3790 On Fri, Oct 4, 2019 at 5:37 PM Eric Chaves <e...@uolet.com> wrote: > > Hi Matt, thanks for letting me know. > > Have you ever wrote a ScriptedRecordSetWriter? I couldn't find any example of > it. Do you have any to share? > > Best regards, > > Em sex, 4 de out de 2019 às 18:00, Matt Burgess <mattyb...@apache.org> > escreveu: >> >> Eric, >> >> The RecordPath classes are in the nifi-record-path JAR, which is not >> currently included in the scripting bundle. I have written up an >> improvement Jira [1] to add this. >> >> Regards, >> Matt >> >> [1] https://issues.apache.org/jira/browse/NIFI-6741 >> >> On Fri, Oct 4, 2019 at 3:30 PM Eric Chaves <e...@uolet.com> wrote: >> > >> > Hi folks, >> > >> > I'd like to use the Record Path classes in a groovy script for a >> > InvokeScriptedProcessor but when I import those classes they aren't found. >> > Can anyone point me the JAR where they reside? >> > >> > The classes I'm importing are >> > >> > import org.apache.nifi.record.path.FieldValue >> > import org.apache.nifi.record.path.RecordPath >> > import org.apache.nifi.record.path.RecordPathResult >> > import org.apache.nifi.record.path.util.compiledRecordPaths >> > >> > Thanks in advance, >> > >> > Eric