{
  "name": "automate_directory_v2",
  "nodes": [
    {
      "parameters": {
        "fileSelector": "=/home/erik/Dokumente/projekte/directory_organizer/all_files/neu/*.pdf",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        -300,
        -200
      ],
      "id": "029f7a1c-4b14-40aa-af08-df87333f9e20",
      "name": "Read/Write Files from Disk2"
    },
    {
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "options": {
          "includeBinaries": true
        }
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        -80,
        -200
      ],
      "id": "139d46f2-77fa-4c11-9e4c-baa8f693ad68",
      "name": "Aggregate"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        360,
        -200
      ],
      "id": "6e9f9236-4250-471f-87ca-591f42151065",
      "name": "Loop Over Items",
      "executeOnce": false
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -520,
        -200
      ],
      "id": "acbb00b7-c1fb-4c08-a3db-d9279b58dceb",
      "name": "When clicking ‘Test workflow’"
    },
    {
      "parameters": {
        "workflowId": {
          "__rl": true,
          "value": "ztuJJrjCicH0Fwm5",
          "mode": "list",
          "cachedResultName": "automate_directory_subflow_v2"
        },
        "workflowInputs": {
          "mappingMode": "defineBelow",
          "value": {
            "fileName": "={{ $json.data.fileName }}",
            "filePath": "/home/erik/Dokumente/projekte/directory_organizer/all_files/neu/"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "filePath",
              "displayName": "filePath",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "canBeUsedToMatch": true,
              "type": "string"
            },
            {
              "id": "fileName",
              "displayName": "fileName",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "canBeUsedToMatch": true,
              "type": "string"
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": true
        },
        "options": {
          "waitForSubWorkflow": true
        }
      },
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.2,
      "position": [
        580,
        -200
      ],
      "id": "3989e4df-502a-4f82-a133-b329215d7cfc",
      "name": "Execute Workflow",
      "alwaysOutputData": true,
      "retryOnFail": true
    },
    {
      "parameters": {
        "fieldToSplitOut": "data",
        "include": "allOtherFields",
        "options": {
          "includeBinary": true
        }
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        140,
        -200
      ],
      "id": "489a2bf9-8924-4abd-9edb-009e08ec3773",
      "name": "Split Out"
    },
    {
      "parameters": {
        "content": "## Dateienliste aus dem Ordner erstellen\n- alle PDFs aus bestimmten Ordnerpfad einlesen lassen\n- diese Werten nach Ansammlung aufgeteilt und weiterverarbeitet",
        "height": 320,
        "width": 600,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -340,
        -320
      ],
      "id": "14bc8b70-1600-47c8-b361-b15adc34c7e0",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## Dateien nacheinander einsortieren\n- hier wird der name der aktuellen Datei an Subflow gegeben",
        "height": 320,
        "width": 500,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        280,
        -320
      ],
      "id": "9eb4920c-0a13-4f58-a4d4-9f8c9232fb71",
      "name": "Sticky Note1"
    }
  ],
  "pinData": {},
  "connections": {
    "Read/Write Files from Disk2": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "3d697a41-cf1d-4642-91e7-e646e3a5c26b",
  "meta": {
    "instanceId": "7015a221cde2c8910447ba79f73dadb400355d58bef066d421f69d635154e3c7"
  },
  "id": "3DgByBai0Tr9f6ER",
  "tags": []
}