Details
-
Type:
New Feature
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.16.0
-
Component/s: camel-core, eip
-
Labels:None
-
Estimated Complexity:Unknown
Description
We should have a script in the DSL
<route> ... <script> <groovy>some groovy stuff here</groovy> </script> ... </script>
The script is then invoked and allows noop to avoid changing the message body.
Currently you can only do
<transform> <groovy> ... </groovy> </transform>
... and that may change the message body with the return value from groovy.
With <script> you can avoid this.