mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 06:55:28 +00:00
NIFI-2815: Fixed InvokeScriptedProcessor to allow changes to script engine type
This closes #1055.
This commit is contained in:
parent
5a3d00c7bb
commit
66fe004058
@ -232,6 +232,10 @@ public class InvokeScriptedProcessor extends AbstractScriptProcessor {
|
||||
|| MODULES.equals(descriptor)
|
||||
|| SCRIPT_ENGINE.equals(descriptor)) {
|
||||
scriptNeedsReload.set(true);
|
||||
// Need to reset scriptEngine if the value has changed
|
||||
if (SCRIPT_ENGINE.equals(descriptor)) {
|
||||
scriptEngine = null;
|
||||
}
|
||||
} else if (instance != null) {
|
||||
// If the script provides a Processor, call its onPropertyModified() method
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user