CSEN_AutoEnrollment_TDTM
Course Connection trigger handler/TDTM for auto enrollment
Custom Permission | REDU - Admin |
Event | AfterInsert, BeforeUpdate, AfterUpdate |
Object | PE Pathway |
Related RIO Education Settings | Course Plan Requirement RT Id |
Description
Whenever an existing PE Pathway's 'Automatically Enroll in Courses' checkbox field has been changed from false to true, or,
whenever a new PE Pathway with the 'Automatically Enroll in Courses' field set to true is inserted,
this class will find any required Course Connections for the PE Pathway and automatically enroll the student, by:
- linking to both the PE Pathway and the appropriate Course Connection, and,
- setting the Enrollment Status to 'Enrolled', and Automatically Enrolled to true.
If the PE Pathway has been updated and the Automatically Enroll in Courses field is true, but there is no related Term, this class will check if the Enrollment Method is 'Automatic by term/course'.
If it is, the Term will be set automatically using previous Terms. If it is not, an error will be thrown.
See also: Auto Enrollment for Courses