Is your feature request related to a problem? Please describe.
We are missing a simple way of partitioning a collection (an array) into several sublists by simply providing the number of elements the collection should be partitioned by. There is the sublist function but its hard to use and a simple way would be very handy to create batches when one wants to split workloads for multi instance processing purposes:
A new partition(array, size) function that splits an array into equals sub arrays each with the maximum number of elements defined by the size argument. This function should handle null values and empty lists gracefully.
Is your feature request related to a problem? Please describe.
We are missing a simple way of partitioning a collection (an array) into several sublists by simply providing the number of elements the collection should be partitioned by. There is the
sublist
function but its hard to use and a simple way would be very handy to create batches when one wants to split workloads for multi instance processing purposes:Describe the solution you'd like
A new
partition(array, size)
function that splits anarray
into equals sub arrays each with the maximum number of elements defined by thesize
argument. This function should handle null values and empty lists gracefully.Related issues
During a customer interview we found out that there is currently not easy way to split workloads to adhere to API rate limits in the context of: https://github.com/camunda/connectors/issues/2695