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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: