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 2016/07/15 13:27:20 UTC

[jira] [Commented] (CAMEL-10136) Missing Group attribute for Tokenize DSL added to the Body Expression

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

Claus Ibsen commented on CAMEL-10136:
-------------------------------------

Yeah you should use convertBodyTo to convert the body to string before using the splitter with tokenize.

> Missing Group attribute for Tokenize DSL added to the Body Expression
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-10136
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10136
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Charles Moulliard
>
> The option group ("<tokenize token="\n" group="1000"/>",".tokenize("\n", 1000)") doesn't exist when we use the Tokenize DSL after a body expression
> {code}
> .split(body(String.class).tokenize("\n")).streaming()
> {code}
> but only when we create append the .tokenize() DSL to the splitter
> {code}
> .split().tokenize("\n",3).streaming()
> {code}
> Question : Is it the expected behaviour or something missing ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)