{
  "name": "test-repeat-until-success",
  "root": {
    "id": 1,
    "name": "Sequence",
    "children": [
      {
        "id": 2,
        "name": "Log",
        "args": {
          "message": "Begin test repeat until success"
        }
      },
      {
        "id": 3,
        "name": "AlwaysSuccess",
        "children": [
          {
            "id": 4,
            "name": "RepeatUntilSuccess",
            "args": {
              "maxLoop": 3
            },
            "input": [
              ""
            ],
            "debug": true,
            "children": [
              {
                "id": 5,
                "name": "AlwaysFail",
                "children": [
                  {
                    "id": 6,
                    "name": "Log",
                    "args": {
                      "message": "[1] run repeat until success!!!"
                    }
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "id": 7,
        "name": "AlwaysSuccess",
        "children": [
          {
            "id": 8,
            "name": "Sequence",
            "children": [
              {
                "id": 9,
                "name": "RepeatUntilSuccess",
                "args": {
                  "maxLoop": 3
                },
                "input": [
                  ""
                ],
                "children": [
                  {
                    "id": 10,
                    "name": "Sequence",
                    "children": [
                      {
                        "id": 11,
                        "name": "Sequence",
                        "children": [
                          {
                            "id": 12,
                            "name": "Wait",
                            "args": {
                              "time": 1
                            }
                          },
                          {
                            "id": 13,
                            "name": "Log",
                            "args": {
                              "message": "wait 1s"
                            }
                          }
                        ]
                      },
                      {
                        "id": 14,
                        "name": "AlwaysFail",
                        "children": [
                          {
                            "id": 15,
                            "name": "Log",
                            "args": {
                              "message": "[2] run repeat until success!!!"
                            }
                          }
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                "id": 16,
                "name": "Log",
                "args": {
                  "message": "DO NOT LOG THIS!!!"
                }
              }
            ]
          }
        ]
      },
      {
        "id": 17,
        "name": "Log",
        "args": {
          "message": "End test repeat until success"
        }
      }
    ]
  },
  "desc": ""
}