Split In Batches node currentRunIndex example — n8n Workflow
Übersicht
This workflow demonstrates how to use currentRunIndex to get the running index.
Function node: This node generates mock data for the workflow. Replace it with the node whose data you want to split into batches.
SplitInBatches node: This node splits the data with the batch size equal to 1. Based on your use-case, set the value of the Batch Size.
IF node: This node checks the running index. If the running index equals 5 the node returns true and breaks the loop. The node uses the expression {
Verwendete Knoten
Workflow-Vorschau
So funktioniert es
- 1
Auslöser
Der Workflow startet mit einem auslöser-Auslöser.
- 2
Verarbeitung
Die Daten fließen durch 5 Knoten, connecting function, if, manualtrigger.
- 3
Ausgabe
Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.
Knotendetails (5)
On clicking 'execute'
manualTrigger
Function
function
SplitInBatches
splitInBatches
IF
if
Set
set
So importieren Sie diesen Workflow
- 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
- 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
- 3Wählen Sie die heruntergeladene Datei
split-in-batches-node-currentrunindex-exampleund klicken Sie auf Importieren. - 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
- 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.
Oder direkt in n8n → Aus JSON importieren einfügen:
Integrationen
Diesen Workflow holen
Herunterladen und mit einem Klick importieren
JSON herunterladenAuf n8n.io ansehenErstellt von
Harshil Agrawal
@harshil1712
Tags
Neu bei n8n?
n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.
n8n kostenlos holen →