You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2020/09/18 09:10:00 UTC
[jira] [Resolved] (CAMEL-15548) Enable shortened way to access
headers in mvel templates
[ https://issues.apache.org/jira/browse/CAMEL-15548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Netherton resolved CAMEL-15548.
-------------------------------------
Resolution: Fixed
> Enable shortened way to access headers in mvel templates
> --------------------------------------------------------
>
> Key: CAMEL-15548
> URL: https://issues.apache.org/jira/browse/CAMEL-15548
> Project: Camel
> Issue Type: Improvement
> Reporter: James Netherton
> Assignee: James Netherton
> Priority: Minor
> Fix For: 3.6.0
>
>
> When using mvel, it seems there is no short way of accessing headers. You always have to go via the exchange message object. E.g:
> return "The result is " + (request.headers.numA + request.headers.numB);
> It'd be nicer if it worked like most of the other templating components and have access to a headers object like:
> return "The result is " + (headers.numA + headers.numB);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)