{
  "id": "esign",
  "initial": "active",
  "context": {
    "Data": {},
    "ReturnFormName": "form_bpkb_return"
  },
  "states": {
    "active": {
      "type": "parallel",
      "states": {
        "followup": {
          "type": "compound",
          "initial": "form_survey_followup_esign",
          "states": {
            "done": {
              "type": "final"
            },
            "form_survey_followup_esign": {
              "type": "atomic",
              "on": {
                "STATUS_CALLBACK": [
                  {
                    "target": "form_survey_followup_esign",
                    "internal": true,
                    "actions": [
                      ""
                    ]
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        },
        "main": {
          "type": "compound",
          "initial": "form_esign_view_only",
          "states": {
            "done": {
              "type": "final"
            },
            "form_esign_view_only": {
              "type": "atomic",
              "on": {
                "MAIN_FINISHED": [
                  {
                    "target": "done"
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        },
        "return": {
          "type": "compound",
          "initial": "form_bpkb_return",
          "states": {
            "done": {
              "type": "final"
            },
            "form_bpkb_return": {
              "type": "atomic",
              "on": {
                "FILL_REJECTION": [
                  {
                    "target": "form_bpkb_return",
                    "internal": true,
                    "actions": [
                      ""
                    ]
                  }
                ],
                "RETURN_BPKB": [
                  {
                    "target": "done"
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}