NIFI-9896: Fixed bug with overwriting Script Body value in InvokeScriptedProcessor

This closes #5948

Signed-off-by: Mike Thomsen <mthomsen@apache.org>
This commit is contained in:
Matthew Burgess 2022-04-08 12:52:44 -04:00 committed by Mike Thomsen
parent 2c83149c6d
commit 252a8abadd
No known key found for this signature in database
GPG Key ID: 88511C3D4CAD246F
1 changed files with 0 additions and 2 deletions

View File

@ -256,8 +256,6 @@ public class InvokeScriptedProcessor extends AbstractSessionFactoryProcessor {
scriptingComponentHelper.setScriptPath(newValue); scriptingComponentHelper.setScriptPath(newValue);
} else if (ScriptingComponentUtils.SCRIPT_BODY.equals(descriptor)) { } else if (ScriptingComponentUtils.SCRIPT_BODY.equals(descriptor)) {
scriptingComponentHelper.setScriptBody(newValue); scriptingComponentHelper.setScriptBody(newValue);
} else if (ScriptingComponentUtils.MODULES.equals(descriptor)) {
scriptingComponentHelper.setScriptBody(newValue);
} else if (scriptingComponentHelper.SCRIPT_ENGINE.equals(descriptor)) { } else if (scriptingComponentHelper.SCRIPT_ENGINE.equals(descriptor)) {
scriptingComponentHelper.setScriptEngineName(newValue); scriptingComponentHelper.setScriptEngineName(newValue);
} }