camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terris Linenbach (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-7710) simple: Use standard {{ }} syntax to reference values in properties files (Spring DSL)
Date Mon, 18 Aug 2014 18:06:20 GMT

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

Terris Linenbach edited comment on CAMEL-7710 at 8/18/14 6:05 PM:
------------------------------------------------------------------

That doesn't appear to be the case with simple, which is why I created this JIRA.

Example:

{noformat}<filter><simple>${body} == {{version}}</simple>{noformat}

The error on start-up is:

{noformat}Could not resolve placeholder 'body' in string value "${body} == 1{noformat}

In other words, the context never starts.

Using {noformat}${properties:version}{noformat}

fixes this. However, it takes much Camel experience to know that.


was (Author: terris):
{noformat}That doesn't appear to be the case with simple, which is why I created this JIRA.

Example:

<filter><simple>${body} == {{version}}</simple>

The error on start-up is:

Could not resolve placeholder 'body' in string value "${body} == 1

In other words, the context never starts.

Using ${properties:version} fixes this.{noformat}

> simple: Use standard {{ }} syntax to reference values in properties files (Spring DSL)
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7710
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7710
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-script
>            Reporter: Terris Linenbach
>            Assignee: Claus Ibsen
>
> I'm using Spring DSL. This is not very simple:
> {noformat}${body} == ${properties:version}{noformat}
> This is simpler:
> {noformat}${body} == {{maxDepth}}{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message