{
  "openruna_format": "flow-graph-v1",
  "title": "0333_Stopanderror_Webhook_Create_Webhook",
  "slug": "0333-stopanderror-webhook-create-webhook",
  "source_filename": "0333_Stopanderror_Webhook_Create_Webhook.json",
  "nodes": [
    {
      "id": "When clicking \"Execute Workflow\"",
      "name": "When clicking \"Execute Workflow\"",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Whether type is file",
      "name": "Whether type is file",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Set new path for subfolder",
      "name": "Set new path for subfolder",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Set new path for file",
      "name": "Set new path for file",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Execute Workflow Trigger",
      "name": "Execute Workflow Trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "Set folder-paths for from and to",
      "name": "Set folder-paths for from and to",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Create to folder if necessary",
      "name": "Create to folder if necessary",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Get all folders/files in from-folder",
      "name": "Get all folders/files in from-folder",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Loop over files and folders",
      "name": "Loop over files and folders",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Consolidate all files and folders found",
      "name": "Consolidate all files and folders found",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Create subfolder in to-folder",
      "name": "Create subfolder in to-folder",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Get all folders/files in found subfolder",
      "name": "Get all folders/files in found subfolder",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Whether there is are more files or subfolders found",
      "name": "Whether there is are more files or subfolders found",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Consolidate all found files",
      "name": "Consolidate all found files",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Loop Over all files",
      "name": "Loop Over all files",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "Move file to destination",
      "name": "Move file to destination",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Delete from-folder",
      "name": "Delete from-folder",
      "integration": "nextCloud",
      "kind": "action"
    },
    {
      "id": "Set paths",
      "name": "Set paths",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Whether the request is valid",
      "name": "Whether the request is valid",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Stop and Error: request not valid",
      "name": "Stop and Error: request not valid",
      "integration": "stopAndError",
      "kind": "action"
    },
    {
      "id": "Whether the request is valid1",
      "name": "Whether the request is valid1",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Stop and Error: request not valid1",
      "name": "Stop and Error: request not valid1",
      "integration": "stopAndError",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Webhook",
      "to": "Whether the request is valid"
    },
    {
      "from": "Set paths",
      "to": "Set folder-paths for from and to"
    },
    {
      "from": "Loop Over all files",
      "to": "Delete from-folder"
    },
    {
      "from": "Loop Over all files",
      "to": "Move file to destination"
    },
    {
      "from": "Whether type is file",
      "to": "Consolidate all files and folders found"
    },
    {
      "from": "Whether type is file",
      "to": "Set new path for subfolder"
    },
    {
      "from": "Set new path for file",
      "to": "Loop Over all files"
    },
    {
      "from": "Execute Workflow Trigger",
      "to": "Whether the request is valid1"
    },
    {
      "from": "Move file to destination",
      "to": "Loop Over all files"
    },
    {
      "from": "Set new path for subfolder",
      "to": "Create subfolder in to-folder"
    },
    {
      "from": "Consolidate all found files",
      "to": "Set new path for file"
    },
    {
      "from": "Loop over files and folders",
      "to": "Whether type is file"
    },
    {
      "from": "Whether the request is valid",
      "to": "Set folder-paths for from and to"
    },
    {
      "from": "Whether the request is valid",
      "to": "Stop and Error: request not valid"
    },
    {
      "from": "Create subfolder in to-folder",
      "to": "Get all folders/files in found subfolder"
    },
    {
      "from": "Create to folder if necessary",
      "to": "Get all folders/files in from-folder"
    },
    {
      "from": "Whether the request is valid1",
      "to": "Set folder-paths for from and to"
    },
    {
      "from": "Whether the request is valid1",
      "to": "Stop and Error: request not valid1"
    },
    {
      "from": "Set folder-paths for from and to",
      "to": "Create to folder if necessary"
    },
    {
      "from": "When clicking \"Execute Workflow\"",
      "to": "Set paths"
    },
    {
      "from": "Get all folders/files in from-folder",
      "to": "Loop over files and folders"
    },
    {
      "from": "Consolidate all files and folders found",
      "to": "Whether there is are more files or subfolders found"
    },
    {
      "from": "Get all folders/files in found subfolder",
      "to": "Consolidate all files and folders found"
    },
    {
      "from": "Whether there is are more files or subfolders found",
      "to": "Consolidate all found files"
    },
    {
      "from": "Whether there is are more files or subfolders found",
      "to": "Loop over files and folders"
    }
  ]
}