Repeater
Description
Section titled “Description”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.
Configuration
Section titled “Configuration”Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
| repetitions | number | Yes | Number of times the execution will be repeated. Minimum: 1, Maximum: 1000. Default: 1. |
Output
Section titled “Output”{ "_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 }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "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
_repetitionobject with:current(current number),total,isFirst, andisLast. - 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, andmergeLevelfor compatibility with merge nodes. - Original data is passed without modification to each repetition (not deep cloned).
- Returns
_iterating: trueso the workflow engine executes each batch element in parallel.
Related Nodes
Section titled “Related Nodes”- Iterator - iterates over an existing array instead of repeating N times
- MergeResults - recombines the repetition results
- MergeIterator - simplified iteration merge