camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6098) Add script to the DSL to invoke a expression language and allow noop changes on the Exchange
Date Sat, 23 Feb 2013 16:06:12 GMT
Claus Ibsen created CAMEL-6098:
----------------------------------

             Summary: Add script to the DSL to invoke a expression language and allow noop
changes on the Exchange
                 Key: CAMEL-6098
                 URL: https://issues.apache.org/jira/browse/CAMEL-6098
             Project: Camel
          Issue Type: New Feature
          Components: camel-core, eip
            Reporter: Claus Ibsen
             Fix For: Future


See nabble
http://camel.465427.n5.nabble.com/Changing-POJO-attribute-from-the-body-using-the-Simple-Expression-Language-tp5727971.html

We should have a script in the DSL
{code:xml}
<route>
  ...
  <script>
    <groovy>some groovy stuff here</groovy>
  </script>
  ...
</script>
{code}

The script is then invoked and allows noop to avoid changing the message body.

Currently you can only do
{code:xml}
<transform>
  <groovy> ... </groovy>
</transform>
{code}

... and that may change the message body with the return value from groovy.

With <script> you can avoid this.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message