[
https://issues.apache.org/jira/browse/NIFI-2970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph Percivall resolved NIFI-2970.
------------------------------------
Resolution: Not A Bug
This is not a bug in NiFi but is due to the default configuration of JRuby as
explained in NIFI-3406. In order to provide a better ExecuteScript UX (and
avoid this issue) more configuration for the different Script Engines should be
exposed.
> ExecuteScript: Shared Scope
> ---------------------------
>
> Key: NIFI-2970
> URL: https://issues.apache.org/jira/browse/NIFI-2970
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Justin M Cavinee
> Priority: Minor
>
> The Execute Script processor appears to have some shared scope between
> multiple instances of the processor.
> My workflow has 2 different execute script processors, configured to use
> files. In both scripts, I used a variable called Interfaces. On the first
> script I developed, it was instantiated as a Hash, and worked fine. In the
> second script, I then attempted to use the variable Interfaces as an array.
> When I started the ExecuteScript Processor, I received an run-time error
> about failing to convert Hash to Array. The only change I needed to fix the
> error was to use a different variable name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)