Application trigger handler/TDTM to create enrollment
|REDU - Admin, REDU - Student
|Related RIO Education Settings
|Auto Program Enrollment-EDA Application
Enable PE Deletion From EDA Application
When a new Application with an approved Application Status is inserted, or when an existing Application has its Application Status field updated to an approved value, this class will create a Program Enrollment record if the Auto Program Enrollment-EDA Application custom setting is enabled. If the related Program Plan's Support Pre-Acceptance Enrollment field is either 'Always' or 'For application fee only' (and the Application Fee on the Program Plan is not blank), the Program Enrollment will also be created if Application Status is submitted.
It will set the Program field on the new Program Enrollment based on the Application's Applying To field. If the Application Status was approved, it will set the Eligible to Enroll field to true and sets the Admission Date based on the Application's Application Decision Date. It will set the Program Status based on the Application Status and, provided the Program Status is not withdrawn, will relate the Program Enrollment to the Application, set the Contact field based on the Application's Applicant, the Enrollment Status based on the Application's Study Mode and the Application Submitted Date based on the Application's Application Date.
It will set the Fee Type, Fee Type Option, Non-Tuition Fee Type, Non-Tuition Fee Type Option, Fee Method, Pay Upfront, Default Campus and Program Offering fields based on the corresponding Application fields.
It will set the Program Plan field based on the Application's Program Plan. If the Application does not have a related Program Plan, the default Program Plan for the Program will be used. The Starting Term will be set to the Application's Term. If the Application's Term is not set, it will use the Next Starting Term from the Program Plan. Similarly, the Program Pathway will be set to either the Application's Program Pathway or the Default Program Pathway from the Program Plan.
If a Program Enrollment already exists for this Application, this class will update the existing one instead of creating a new one. If the Program Enrollment's Term has finished, an error will be thrown and the Program Enrollment will not be saved.