[ 
https://issues.apache.org/jira/browse/CAMEL-7995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14195886#comment-14195886
 ] 

Claus Ibsen commented on CAMEL-7995:
------------------------------------

For example you may develop this route
{code}
<camelContext xmlns="http://camel.apache.org/schema/blueprint";>           
 <route>                        
    <from uri="timer:{{fromTimer}}"/> 
        <setBody>
          <method ref="helloBean" method="hello" />
        </setBody>
    <log message="The message contains ${body}" />
    <to uri="mock:{{destination}}"/>
  </route>
</camelContext>
{code}

Which at runtime becomes dumped as source as
{code}
<route xmlns="http://camel.apache.org/schema/spring"; id="route1">
 <from uri="timer:foo"/>
  <setBody>
   <method ref="helloBean" method="hello"/>
  </setBody>
 <log message="The message contains ${body}"/>
 <to uri="mock:end"/>
</route>
{code}

So what we want is being able to dump the route as source using the original {{ 
}} placeholders. That would require an option / new API operation to specify 
with or without the {{ }}.

> Route model - Keep the {{ }} placeholders and allow api to get the model with 
> the resolved values
> -------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7995
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7995
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 3.0.0, Future
>
>
> When you define routes using {{ }} placeholders, they get resolved when Camel 
> builds the runtime route. And the route model gets updated with the resolved 
> values, eg so {{ }} gets replaced with the value.
> So when you dump the route model as xml (eg as source) then you loose the {{ 
> }} placeholders and see the actual values.
> We should allow to keep the {{ }} so the route model is 100% as designed, but 
> we should also store the resolved values that the runtime route is using, so 
> you can see those values as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to