Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9207

Make it easy to collate/group N items from a message body with the splitter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.0
    • camel-core
    • None
    • Unknown

    Description

      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?

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

      Now its to come up with a good function name.

      Also the body could be implied, so its just

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

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: