You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/11/19 16:46:00 UTC

[jira] [Commented] (CAMEL-18731) camel-core - Languages should have a way to set result type / and output to header instead of body

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

Claus Ibsen commented on CAMEL-18731:
-------------------------------------

[~essobedo] I wonder if you can help with this? You recently did the great work on the language fluent builder. We have some inconsistency in languages. By allowing more of them to easily get their input from a header/property, and as well to set the output class type. 

> camel-core - Languages should have a way to set result type / and output to header instead of body
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-18731
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18731
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.20.0
>
>
> Some of the languages have
>     @XmlAttribute(name = "resultType")
>     private String resultTypeName;
>     @XmlTransient
>     private Class<?> resultType;
>     @XmlAttribute
>     @Metadata(label = "advanced")
>     private String headerName;
>     @Metadata(label = "advanced")
>     private String propertyName;
> We need to have this for more languages (all but not)
> - header
> - exchange property
> So we could maybe have a class that extends ExpressionDefinition and then have the above options which other languages can extend to make it reuable and consistent.
> This then also requires to update
> - reifier
> - builder



--
This message was sent by Atlassian Jira
(v8.20.10#820010)