﻿{
  "workflow": {
    "wf_name": "Working with Errors",
    "wf_folder": "developer_workflow_tutorials",
    "wf_id": "20190307135543",
    "description": "",
    "variable": {
      "wf_size": 105
    },
    "nodes": [
      {
        "id": "20190307-135557-637-fdadc99706d8",
        "bypass": false,
        "type": "mon_folder",
        "start_proc": true,
        "execute_on": "success",
        "name": "Start",
        "description": "Submit a file here",
        "pos_x": 65,
        "pos_y": 110,
        "outbounds": [
          {
            "type": "dest_folder",
            "id": "20190307-135627-437-bf8a98182214"
          }
        ]
      },
      {
        "id": "20190307-135627-437-bf8a98182214",
        "bypass": false,
        "type": "dest_folder",
        "start_proc": false,
        "execute_on": "success",
        "name": "Folder - simulates Error",
        "description": "Tries to deliver to an unreachable network share, this will simulate an error",
        "pos_x": 222,
        "pos_y": 110,
        "outbounds": [
          {
            "type": "dest_folder",
            "id": "20190307-135714-573-79d3466918b7"
          },
          {
            "type": "op_hold",
            "id": "20190307-135922-565-2783235c2ab0"
          }
        ],
        "properties": {
          "folder": "\\\\server_not_reachable\\share_dont_exist",
          "suffix": "",
          "prefix": "",
          "overwrite": false,
          "unique": false,
          "case": "None",
          "drop_name": false,
          "drop_ext": false,
          "move": false
        }
      },
      {
        "id": "20190307-135714-573-79d3466918b7",
        "bypass": false,
        "type": "dest_folder",
        "start_proc": false,
        "execute_on": "error",
        "pos_x": 380,
        "pos_y": 197,
        "outbounds": [
          {
            "type": "op_hold",
            "id": "20190307-135922-565-2783235c2ab0"
          }
        ],
        "properties": {
          "folder": "c:\\temp",
          "suffix": "",
          "prefix": "",
          "overwrite": false,
          "unique": false,
          "case": "None",
          "drop_name": false,
          "drop_ext": false,
          "move": true
        },
        "name": "Folder - Fallback delivery",
        "description": "Only executes if the node before ended up in error."
      },
      {
        "id": "20190307-135850-455-26283be9f167",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "name": "",
        "bypass": false,
        "type": "other_textfile",
        "start_proc": false,
        "execute_on": "success",
        "pos_x": 695,
        "pos_y": 110,
        "properties": {
          "text": "%s_source%\r\n",
          "encoding": "UTF-8",
          "out_file": "WorkingWithErrors.txt",
          "out_folder": "c:\\temp",
          "append": false,
          "set_to_source": false
        },
        "description": "Simulates the \"rest of the worfklow\""
      },
      {
        "id": "20190307-135922-565-2783235c2ab0",
        "name": "",
        "bypass": false,
        "type": "op_hold",
        "start_proc": false,
        "execute_on": "success",
        "properties": {
          "syncronize": true,
          "sync_time": 3600,
          "sleep": false,
          "sleep_time": false,
          "file_wait": false,
          "files_list": ""
        },
        "description": "Waits until either normal or fallback delivery was done",
        "pos_x": 537,
        "pos_y": 110,
        "outbounds": [
          {
            "type": "other_textfile",
            "id": "20190307-135850-455-26283be9f167"
          }
        ]
      }
    ]
  }
}