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

Federico Mariani commented on CAMEL-26400:
------------------------------------------

Fixed on main for 4.24.0 by https://github.com/apache/camel/pull/28683 (commit 
0bd78692be89).

camel_eval_expression now takes headers and variables (a JSON object or 
key=value lines), predicate (in any language) and resultType (for the typed 
languages such as xpath). An XPath that returns a boolean, a string or a number 
gets a hint naming the predicate or resultType to pass, and nodes come back as 
their XML. The same arguments reach a running integration through the 
eval-language dev console, which gains a resultType option.

_Claude Code on behalf of Croway_

> camel-jbang-mcp - camel_eval_expression cannot set headers, variables, 
> resultType or predicate mode, so an XPath function such as string() or 
> boolean() fails and header or variable lookups come back null
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26400
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26400
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang, camel-jbang-mcp
>    Affects Versions: 4.23.0
>            Reporter: Federico Mariani
>            Assignee: Federico Mariani
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to