NIFI-2815: Fixed InvokeScriptedProcessor to allow changes to script engine type

This closes #1055.
This commit is contained in:
Matt Burgess 2016-09-23 11:04:51 -04:00 committed by Pierre Villard
parent 5a3d00c7bb
commit 66fe004058
1 changed files with 4 additions and 0 deletions

View File

@ -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 {