{
  "id": "survey-rescoring",
  "initial": "main",
  "context": {},
  "states": {
    "main": {
      "type": "compound",
      "initial": "active",
      "states": {
        "active": {
          "type": "compound",
          "initial": "pin_challenge",
          "states": {
            "asset_doc": {
              "type": "atomic",
              "on": {
                "NEXT": [
                  {
                    "target": "financing"
                  }
                ],
                "RESCORING_STARTED": [
                  {
                    "target": "main.paused"
                  }
                ]
              }
            },
            "financing": {
              "type": "atomic",
              "on": {
                "NEXT": [
                  {
                    "target": "main.done"
                  }
                ],
                "RESCORING_STARTED": [
                  {
                    "target": "main.paused"
                  }
                ]
              }
            },
            "hist_deep": {
              "type": "history",
              "default": "pin_challenge",
              "history": "deep"
            },
            "pin_challenge": {
              "type": "atomic",
              "on": {
                "NEXT": [
                  {
                    "target": "verif"
                  }
                ],
                "RESCORING_STARTED": [
                  {
                    "target": "main.paused"
                  }
                ]
              }
            },
            "verif": {
              "type": "atomic",
              "on": {
                "NEXT": [
                  {
                    "target": "asset_doc"
                  }
                ],
                "RESCORING_STARTED": [
                  {
                    "target": "main.paused"
                  }
                ]
              }
            }
          }
        },
        "done": {
          "type": "final"
        },
        "paused": {
          "type": "atomic",
          "on": {
            "RESCORING_COMPLETED": [
              {
                "target": "main.active.hist_deep"
              }
            ]
          }
        }
      }
    }
  }
}