Add partition
function that allows to partitioning of collections in an easy way
#881
Labels
partition
function that allows to partitioning of collections in an easy way
#881
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: camunda/connectors#2695
The text was updated successfully, but these errors were encountered: