Screen Flow (from flow.puml):
Uses sub-flows:
First step of registration โ captures applicant type (TVET Student / External Learner). TVET path: captures institution, faculty, major, student_id, and contact (email and/or mobile) for roster matching; system verifies roster after Continue โ if matched, OTP sent to the contact; if not matched, AF-6A (claim recorded as pending, PA notified, user continues); if the matched roster record is already linked to another account, AF-6B (inline message, re-enter details). External Learner path: skips roster check and proceeds to Register Authentication (SCR-IDP.01).
learner_type "Applicant Type" โ enum [tvet, external] ยท default: tvet ยท required ยท always visibleinstitution_id "Institution" โ enum lookup.Institute.id ยท required when learner_type==tvet ยท visible when learner_type==tvet ยท cascades: clears faculty_id + major_id on changefaculty_id "Faculty" โ enum lookup.Faculty.id ยท required when learner_type==tvet ยท visible when learner_type==tvet ยท options filtered by institution_id; cleared when institution_id changesmajor_id "Major" โ enum lookup.Major.id ยท required when learner_type==tvet ยท visible when learner_type==tvet ยท options filtered by faculty_id; cleared when faculty_id changesstudent_id "Student ID" โ text ยท max 50 ยท required when learner_type==tvet ยท visible when learner_type==tvetemail "Email" โ text ยท format:email ยท max 255 ยท required when learner_type==tvet && mobile_phone=='' ยท visible when learner_type==tvetmobile_phone "Mobile Phone" โ phone ยท regex ^[0-9]{8,10}$ ยท required when learner_type==tvet && email=='' ยท visible when learner_type==tvet ยท country code +856 fixed prefix (user enters local digits only)continue "Continue" โ enabled when required_fields_valid ยท TVET โ system performs roster check โ match: step 6 invokes SUC-IDP-01 (if email) or SUC-IDP-02 (if mobile); no match: AF-6A; record already claimed by another account: AF-6B ยท External โ SCR-IDP.01 (Register Authentication)sign_in "Sign in" โ always enabled ยท navigates to UC-IDP.02 (SCR-IDP.22 Login)