{
  "version": 0,
  "entry": "b1",
  "blocks": {
    "b1": {
      "type": "createFolder",
      "inputs": {
        "path": "::HOME::/automation-agent-runtime-tests"
      },
      "next": "b2"
    },
    "b2": {
      "type": "setVar",
      "inputs": {
        "name": "path",
        "value": "::HOME::/automation-agent-runtime-tests/write-text-file.txt"
      },
      "next": "b3"
    },
    "b3": {
      "type": "writeTextFile",
      "inputs": {
        "path": {
          "var": "path"
        },
        "text": "line 1\nline 2",
        "append": false,
        "flushNow": true
      },
      "next": "b4"
    },
    "b4": {
      "type": "setVar",
      "inputs": {
        "name": "content",
        "value": {
          "type": "readTextFile",
          "inputs": {
            "path": {
              "var": "path"
            }
          }
        }
      },
      "next": "b5"
    },
    "b5": {
      "type": "setVar",
      "inputs": {
        "name": "contentLength",
        "value": {
          "type": "textLength",
          "inputs": {
            "value": {
              "var": "content"
            }
          }
        }
      },
      "next": "b6"
    },
    "b6": {
      "type": "esConsoleLog",
      "inputs": {
        "message": {
          "type": "textJoin",
          "inputs": {
            "items": [
              "textWriteReadback=ok length=",
              {
                "var": "contentLength"
              }
            ]
          }
        }
      },
      "next": null
    }
  }
}
