Thanks for Great blog Matt. Thinking we should provide an util class like this, to reduce verbose code for scripting users. https://github.com/xmlking/nifi-scripting/blob/master/nifi-sumo-common/src/main/java/com/crossbusiness/nifi/processors/NiFiUtils.java
Sent from my iPhone > On Mar 2, 2016, at 1:40 PM, Matt Burgess <mattyb...@gmail.com> wrote: > > Ask and ye shall receive ;) I realize most of my examples are in Groovy so it > was a good idea to do some non-trivial stuff in another language, thanks for > the suggestion! > > I recreated the JSON-to-JSON template but with Javascript as the language: > http://funnifi.blogspot.com/2016/03/executescript-json-to-json-revisited.html > > Regards, > Matt > >> On Wed, Mar 2, 2016 at 10:52 AM, Mike Harding <mikeyhard...@gmail.com> wrote: >> Hi Matt, >> >> Do you know if there is documentation that describes the ExecuteScript >> JavaScript API at the moment ? Just as a practical example how would I >> translate the Groovy code sample you walk through in this post > >> http://funnifi.blogspot.co.uk/2016/02/executescript-json-to-json-conversion.html >> >> Thanks, >> M >> >> >> >> >> >>> On 1 March 2016 at 18:32, Mike Harding <mikeyhard...@gmail.com> wrote: >>> Hi Matt, >>> >>> That's exactly what I'm looking for - much appreciated ! >>> >>> Thanks, >>> Mike >>> >>>> On Tue, 1 Mar 2016 at 18:13, Matt Burgess <mattyb...@gmail.com> wrote: >>>> Mike, >>>> >>>> I have a blog containing a few posts on how to use ExecuteScript and >>>> InvokeScriptedProcessor: http://funnifi.blogspot.com >>>> >>>> One contains an example using Javascript to get data from Hazelcast and >>>> update flowfile attributes: >>>> http://funnifi.blogspot.com/2016/02/executescript-using-modules.html >>>> >>>> If you'd like to share what you'd like to do with ExecuteScript, I'd be >>>> happy to help you get going! >>>> >>>> Regards, >>>> Matt >>>> >>>>> On Tue, Mar 1, 2016 at 11:53 AM, Mike Harding <mikeyhard...@gmail.com> >>>>> wrote: >>>>> Hi, >>>>> >>>>> I'd like to utilise the ExecuteScript processor but I understand that its >>>>> experimental. Can anyone point me in the direction of an example or >>>>> tutorial preferably using Javascript on how to get started with it? >>>>> >>>>> Thanks, >>>>> Mike >>>> >> >