THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 | ||
---|---|---|
| ||
bar = "baz"; # some other statements ... # camel take the result value as the script evaluation result result = body * 2 + 1 |
...