{
  "id": "survey",
  "initial": "regions",
  "context": {
    "PIN": "",
    "InputtedPIN": "",
    "ShouldFaceVerify": false,
    "BPKBOnHand": true,
    "SkipAdditionalPage": false,
    "PreviousForm": "",
    "RescoringRunning": false,
    "InstantFromQueue": false,
    "Data": null
  },
  "states": {
    "regions": {
      "type": "parallel",
      "states": {
        "env_check": {
          "type": "compound",
          "initial": "form_environment_check",
          "states": {
            "done": {
              "type": "final"
            },
            "form_environment_check": {
              "type": "atomic",
              "on": {
                "EC_SUBMIT": [
                  {
                    "target": "done"
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        },
        "head_vd": {
          "type": "compound",
          "initial": "form_assignment_head_show",
          "states": {
            "done": {
              "type": "final"
            },
            "form_assignment_head_show": {
              "type": "atomic",
              "on": {
                "HV_SUBMIT": [
                  {
                    "target": "form_assignment_head_show",
                    "internal": true
                  },
                  {
                    "target": "done"
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        },
        "main": {
          "type": "compound",
          "initial": "active",
          "states": {
            "active": {
              "type": "compound",
              "initial": "form_pin_challenge_show",
              "states": {
                "form_additional_data_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_personal_information_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_financing_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_akyc_face_verification": {
                  "type": "atomic",
                  "on": {
                    "AKYC_DONE": [
                      {
                        "target": "form_verification_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_asset_condition_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_asset_document_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_personal_information_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_asset_condition_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_asset_document_mandatory_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_bpkb_submission_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_financing_stage_2_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_asset_document_mandatory_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_asset_document_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_verification_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_asset_condition_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_asset_document_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_bpkb_submission_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_financing_show"
                      }
                    ],
                    "BPKB_SUBMIT": [
                      {
                        "target": "form_asset_document_mandatory_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_financing_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_personal_information_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_bpkb_submission_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_financing_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "SUBMIT_TO_ADDITIONAL": [
                      {
                        "target": "form_additional_data_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_financing_stage_2_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_asset_document_mandatory_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_success_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_financing_stage_2_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "SUBMIT_TO_ADDITIONAL": [
                      {
                        "target": "form_additional_data_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_personal_information_show": {
                  "type": "atomic",
                  "on": {
                    "BACKTRACK": [
                      {
                        "target": "form_asset_condition_show"
                      }
                    ],
                    "FORWARD": [
                      {
                        "target": "form_financing_show"
                      },
                      {
                        "target": "form_additional_data_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_personal_information_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_pin_challenge_show": {
                  "type": "atomic",
                  "on": {
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "SUBMIT_PIN": [
                      {
                        "target": "form_akyc_face_verification"
                      },
                      {
                        "target": "form_verification_show"
                      },
                      {
                        "target": "form_pin_challenge_show_error_blank_pin"
                      },
                      {
                        "target": "form_pin_challenge_show_error_wrong_pin"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_pin_challenge_show_error_blank_pin": {
                  "type": "atomic",
                  "on": {
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "SUBMIT_PIN": [
                      {
                        "target": "form_akyc_face_verification"
                      },
                      {
                        "target": "form_verification_show"
                      },
                      {
                        "target": "form_pin_challenge_show_error_blank_pin"
                      },
                      {
                        "target": "form_pin_challenge_show_error_wrong_pin"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_pin_challenge_show_error_wrong_pin": {
                  "type": "atomic",
                  "on": {
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "SUBMIT_PIN": [
                      {
                        "target": "form_akyc_face_verification"
                      },
                      {
                        "target": "form_verification_show"
                      },
                      {
                        "target": "form_pin_challenge_show_error_blank_pin"
                      },
                      {
                        "target": "form_pin_challenge_show_error_wrong_pin"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_reason_reassign_show": {
                  "type": "atomic",
                  "on": {
                    "DETOUR_BACK": [
                      {
                        "target": "form_pin_challenge_show"
                      },
                      {
                        "target": "form_verification_show"
                      },
                      {
                        "target": "form_asset_document_show"
                      },
                      {
                        "target": "form_asset_condition_show"
                      },
                      {
                        "target": "form_personal_information_show"
                      },
                      {
                        "target": "form_additional_data_show"
                      },
                      {
                        "target": "form_financing_show"
                      },
                      {
                        "target": "form_bpkb_submission_show"
                      },
                      {
                        "target": "form_asset_document_mandatory_show"
                      },
                      {
                        "target": "form_financing_stage_2_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_rejection_show": {
                  "type": "atomic",
                  "on": {
                    "REJECTION_TERMINAL": [
                      {
                        "target": "done"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_reschedule_show": {
                  "type": "atomic",
                  "on": {
                    "DETOUR_BACK": [
                      {
                        "target": "form_pin_challenge_show"
                      },
                      {
                        "target": "form_verification_show"
                      },
                      {
                        "target": "form_asset_document_show"
                      },
                      {
                        "target": "form_asset_condition_show"
                      },
                      {
                        "target": "form_personal_information_show"
                      },
                      {
                        "target": "form_additional_data_show"
                      },
                      {
                        "target": "form_financing_show"
                      },
                      {
                        "target": "form_bpkb_submission_show"
                      },
                      {
                        "target": "form_asset_document_mandatory_show"
                      },
                      {
                        "target": "form_financing_stage_2_show"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_success_show": {
                  "type": "atomic",
                  "on": {
                    "SUCCESS_TERMINAL": [
                      {
                        "target": "done"
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                },
                "form_verification_show": {
                  "type": "atomic",
                  "on": {
                    "FORWARD": [
                      {
                        "target": "form_asset_document_show"
                      },
                      {
                        "target": "form_rejection_show"
                      }
                    ],
                    "REQUEST_REASSIGNMENT": [
                      {
                        "target": "form_reason_reassign_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCHEDULE": [
                      {
                        "target": "form_reschedule_show",
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "RESCORING_REJECTED": [
                      {
                        "target": "done"
                      }
                    ],
                    "RESCORING_STARTED": [
                      {
                        "target": "form_verification_show",
                        "internal": true,
                        "actions": [
                          ""
                        ]
                      }
                    ],
                    "TERMINATE": [
                      {
                        "target": "done"
                      }
                    ]
                  }
                }
              }
            },
            "done": {
              "type": "final"
            }
          }
        },
        "unscheduled": {
          "type": "compound",
          "initial": "form_unscheduled_assignment",
          "states": {
            "done": {
              "type": "final"
            },
            "form_unscheduled_assignment": {
              "type": "atomic",
              "on": {
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ],
                "UN_ASSIGN": [
                  {
                    "target": "form_unscheduled_create_appointment",
                    "actions": [
                      ""
                    ]
                  }
                ]
              }
            },
            "form_unscheduled_cancel_reason": {
              "type": "atomic",
              "on": {
                "BACKTRACK": [
                  {
                    "target": "form_unscheduled_create_appointment"
                  }
                ],
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ],
                "UN_SUBMIT_TERMINAL": [
                  {
                    "target": "done"
                  }
                ]
              }
            },
            "form_unscheduled_create_appointment": {
              "type": "atomic",
              "on": {
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ],
                "UN_CANCEL": [
                  {
                    "target": "form_unscheduled_cancel_reason"
                  }
                ],
                "UN_CREATE_SCHEDULE": [
                  {
                    "target": "form_unscheduled_create_schedule_success"
                  }
                ]
              }
            },
            "form_unscheduled_create_schedule_success": {
              "type": "atomic",
              "on": {
                "TERMINATE": [
                  {
                    "target": "done"
                  }
                ],
                "UN_SUBMIT_TERMINAL": [
                  {
                    "target": "done"
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}