Claus Ibsen created CAMEL-9207:
----------------------------------

             Summary: Make it easy to collate/group N items from a message body 
with the splitter
                 Key: CAMEL-9207
                 URL: https://issues.apache.org/jira/browse/CAMEL-9207
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
             Fix For: 2.17.0


For example if you have a list / resultset or something, and you want to split 
that by 1000, then its not super easy to do.

The tokenizer language has that but it assume a token is in place. But if the 
body is list / collection, we should be able to group them.

Maybe a function on simple language?

{code}
<split>
  <simple>${collate(${body}, 1000)}</simple>
  ...
</split>
{code}

Now its to come up with a good function name.

Also the body could be implied, so its just
{code}
<split>
  <simple>${collate(1000)}</simple>
  ...
</split>
{code}





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

Reply via email to