You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2015/12/16 18:56:46 UTC
[jira] [Commented] (NIFI-210) Provide an ExecuteScript processor
[ https://issues.apache.org/jira/browse/NIFI-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15060406#comment-15060406 ]
Matt Burgess commented on NIFI-210:
-----------------------------------
Attached new patch to supercede the other, and to offer two processors:
InvokeScriptProcessor: For JSR-223 script engines that are Invocable, the user can provide a scripted Processor implementation, to which the InvokeScriptProcessor will delegate methods such as getRelationships(), onTrigger(), etc.
ExecuteScript: This processor allows the user to provide a script to act as the body of an onTrigger() method. It must return a FlowFile object, which will be routed to success. If the script does not return a FlowFile, the original FlowFile will be routed to "no-flowfile". If any script error occurs, the original FlowFile will be routed to failure.
The current list of supported languages is Javascript (in Java 8), Groovy, JRuby, Jython, Lua, and Scala.
> Provide an ExecuteScript processor
> ----------------------------------
>
> Key: NIFI-210
> URL: https://issues.apache.org/jira/browse/NIFI-210
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Affects Versions: 0.0.1
> Reporter: A. Steven Anderson
> Labels: processor, scala
> Fix For: 0.5.0
>
> Attachments: NIFI-210.patch, NIFI-210_1.patch
>
>
> Add latest Scala version support for ExcecuteScript processor.
> Should also support Clojure as per discussion and request on mailing list http://mail-archives.apache.org/mod_mbox/nifi-dev/201506.mbox/%3CCAMpSqch4GK1gnw6M1u8tH6AN8e_miXZN5SNkAeMjBujXYGqJiw%40mail.gmail.com%3E
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)