[
https://issues.apache.org/jira/browse/NIFI-6209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821629#comment-16821629
]
Matt Burgess commented on NIFI-6209:
------------------------------------
The JavaScript engine that NiFi currently uses is Nashorn (Java 8), I found
this
(http://blog.jonasbandi.net/2014/03/running-nodejs-applications-on-jvm-with.html)
but until they play more nicely with each other (maybe Java 11 and such?) we
might be at an impasse. Luckily other JVM-based scripting languages like Groovy
allow you to use any Java library to hopefully do the same thing you want to
do, please let me know if there's a node.js module that you'd like to use, we
could try to update the Nashorn engine configurator in NiFi to include such
dependencies by default (but they'd have to be available via the Module
Directory property).
> useing node.js modules in ExecuteScript
> ---------------------------------------
>
> Key: NIFI-6209
> URL: https://issues.apache.org/jira/browse/NIFI-6209
> Project: Apache NiFi
> Issue Type: Wish
> Components: Extensions
> Reporter: Behrouz
> Priority: Major
> Labels: features
>
> It would be very useful if developers could write JavaScript code inside
> ExcuteScript or new processor that enjoy the benefit of Node.js modules.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)