Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As the scripteengine evale method just return a Null if it runs a multiple statments script. Camel now look up the value of script result by using the key of "result" from the value set. If you have multiple statements script, you need to make sure you set the value of result variable as the script return value.

Code Block
languagepytext
bar = "baz";
# some other statements ... 
# camel take the result value as the script evaluation result
result = body * 2 + 1

...