Skip to content

Repeater

The Repeater module executes the next workflow node a specified number of times, generating parallel iterations. Unlike the Iterator which splits an existing array, the Repeater creates N executions of the same flow with the same input data, adding information about the current repetition (_repetition). It supports nested iterations with hierarchical levels, building a complete iteration tree. Each execution receives detailed metadata including the current index, total repetitions, iteration level, and first/last iteration flags.

ParameterTypeRequiredDescription
repetitionsnumberYesNumber of times the execution will be repeated. Minimum: 1, Maximum: 1000. Default: 1.
{
"_iterating": true,
"batch": [
{
"_meta_": {
"workflowRunId": "workflow_123",
"iterationId": "uuid-v4",
"currentChunk": 0,
"totalChunks": 3,
"repetitionNumber": 1,
"isFirstIteration": true,
"isLastIteration": false
},
"data": {
"datos_originales": "valor",
"_repetition": {
"current": 1,
"total": 3,
"isFirst": true,
"isLast": false
}
},
"nextModule": "siguiente_modulo"
}
],
"data": {
"summary": [{ "index": 1, "status": "pending", "repetition": 1, "path": "0" }],
"iterationId": "uuid-v4",
"iterationLevel": 1,
"totalRepetitions": 3
}
}
{
"label": "Repeater",
"repetitions": 5
}
  • The number of repetitions must be between 1 and 1000. Values outside this range generate an error.
  • Each repetition receives a _repetition object with: current (current number), total, isFirst, and isLast.
  • Generates a unique iterationId (UUID v4) for each Repeater execution.
  • Supports nested iterations: if the Repeater is inside another Iterator/Repeater, it increments the iteration level and builds a hierarchical tree.
  • The _meta_ includes: iterationLevel, iterationPath, iterationTree, mergeGroupKey, and mergeLevel for compatibility with merge nodes.
  • Original data is passed without modification to each repetition (not deep cloned).
  • Returns _iterating: true so the workflow engine executes each batch element in parallel.
  • Iterator - iterates over an existing array instead of repeating N times
  • MergeResults - recombines the repetition results
  • MergeIterator - simplified iteration merge