Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3751

Script Result Variable Not Populated By PythonScriptExecutor

    XMLWordPrintable

    Details

      Description

      AbstractScriptExecutor

      if (variables != null) {
      	result = scriptEngine.eval(script, new SimpleBindings(variables));
      }
      else {
      	result = scriptEngine.eval(script);
      }
      

      When the first branch of the `if` test is taken, the result variable is added to the `SimpleBindings` object, and is not added to the engine scope map.

      Even though, in your case, variables is empty, we still call the first branch.

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: