You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Peter Keller (JIRA)" <ji...@apache.org> on 2014/05/11 00:16:18 UTC
[jira] [Created] (CAMEL-7428) Simple Language - Operators are not
evaluated for setting body or headers
Peter Keller created CAMEL-7428:
-----------------------------------
Summary: Simple Language - Operators are not evaluated for setting body or headers
Key: CAMEL-7428
URL: https://issues.apache.org/jira/browse/CAMEL-7428
Project: Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 2.12.3
Reporter: Peter Keller
Operators are not evaluated if using 'simple' for setting body or headers:
{code}
from("direct:simple")
.setHeader("myHeader").simple("true == true", Boolean.class)
.log("header = [${header.myHeader}]")
.setBody(simple("true == true", Boolean.class))
.log("body = [${body}]");
{code}
Output is as follows:
{code}
INFO header = [false]
INFO body = [false]
{code}
The outcome should be {{true}} in both cases.
--
This message was sent by Atlassian JIRA
(v6.2#6252)