{
  "name": "Random Process Scheduler",
  "nodes": [
    {
      "id": "",
      "name": "Execute sub-process",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        3232,
        96
      ]
    },
    {
      "id": "",
      "name": "Get Sub-workflow Name",
      "type": "n8n-nodes-base.n8n",
      "position": [
        3440,
        272
      ]
    },
    {
      "id": "",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2768,
        -256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Append Planning File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        3856,
        96
      ]
    },
    {
      "id": "",
      "name": "Read Planning File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4064,
        96
      ]
    },
    {
      "id": "",
      "name": "ERROR: Execute Sub-worflow",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        3648,
        272
      ]
    },
    {
      "id": "",
      "name": "Monitoring",
      "type": "n8n-nodes-base.code",
      "position": [
        3648,
        96
      ]
    },
    {
      "id": "",
      "name": "ERROR: Monitoring",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        3856,
        272
      ]
    },
    {
      "id": "",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1104,
        0
      ]
    },
    {
      "id": "",
      "name": "Go/no go",
      "type": "n8n-nodes-base.switch",
      "position": [
        2384,
        0
      ]
    },
    {
      "id": "",
      "name": "Daily Scheduler",
      "type": "n8n-nodes-base.code",
      "position": [
        1536,
        0
      ]
    },
    {
      "id": "",
      "name": "Init",
      "type": "n8n-nodes-base.code",
      "position": [
        1312,
        0
      ]
    },
    {
      "id": "",
      "name": "NOTHING Planned Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2592,
        96
      ]
    },
    {
      "id": "",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        -256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        -256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Write Planning File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        2176,
        0
      ]
    },
    {
      "id": "",
      "name": "Send planning",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1744,
        -96
      ]
    },
    {
      "id": "",
      "name": "Write Log File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1968,
        0
      ]
    },
    {
      "id": "",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        -720
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2816,
        0
      ]
    },
    {
      "id": "",
      "name": "ERROR: Daily Scheduler",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        1744,
        96
      ]
    },
    {
      "id": "",
      "name": "FINAL SUCCESS Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        5584,
        16
      ]
    },
    {
      "id": "",
      "name": "Read Final Planning File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4960,
        -128
      ]
    },
    {
      "id": "",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4688,
        -256
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        3024,
        0
      ]
    },
    {
      "id": "",
      "name": "LOOP SUCCESS email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        4272,
        96
      ]
    },
    {
      "id": "",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4752,
        0
      ]
    },
    {
      "id": "",
      "name": "Return Monitoring Data",
      "type": "n8n-nodes-base.code",
      "position": [
        4480,
        272
      ]
    },
    {
      "id": "",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        5376,
        0
      ]
    },
    {
      "id": "",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        5168,
        16
      ]
    },
    {
      "id": "985459e2-c127-404b-ad8f-fdd02f6678dd",
      "name": "Read Log File",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        4960,
        176
      ]
    }
  ],
  "connections": {
    "Init": {
      "main": [
        [
          {
            "node": "Daily Scheduler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "FINAL SUCCESS Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Go/no go": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "NOTHING Planned Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Read Final Planning File",
            "type": "main",
            "index": 0
          },
          {
            "node": "Read Log File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monitoring": {
      "main": [
        [
          {
            "node": "Append Planning File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ERROR: Monitoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Log File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Write Log File": {
      "main": [
        [
          {
            "node": "Write Planning File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Scheduler": {
      "main": [
        [
          {
            "node": "Send planning",
            "type": "main",
            "index": 0
          },
          {
            "node": "Write Log File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "ERROR: Daily Scheduler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute sub-process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Init",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "LOOP SUCCESS email": {
      "main": [
        [
          {
            "node": "Return Monitoring Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Planning File": {
      "main": [
        [
          {
            "node": "LOOP SUCCESS email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute sub-process": {
      "main": [
        [
          {
            "node": "Monitoring",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Sub-workflow Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write Planning File": {
      "main": [
        [
          {
            "node": "Go/no go",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Planning File": {
      "main": [
        [
          {
            "node": "Read Planning File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Sub-workflow Name": {
      "main": [
        [
          {
            "node": "ERROR: Execute Sub-worflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Return Monitoring Data": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Final Planning File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}