CSEN_ReassignPEDRs_TDTM
Course Connection trigger handler/TDTM for reassigning non-completed PE Discipline Requirements
Custom Permission | REDU - Admin, REDU - Faculty, REDU - Student |
Event | BeforeDelete, AfterInsert |
Object | Course Connection |
Related RIO Education Settings | None |
Description
When a student Course Connection with both the Plan Requirement (Course) and Program Enrollment ID fields set is inserted, this class looks for any non-completed PE Discipline Requirements that are linked to the related Program Enrollment and Plan Requirement records, and links them to the Course Connection record by setting the Course Connection field and checks the Revalidate Completion field.
When a Course Connection is deleted, this class attempts to replace the Course Connection field on any related PE Discipline Requirements with a previous Course Connection (using the Attempt Number field). If no previous Course Connection is available, then the PE Discipline Requirement cannot be completed. Its Complete field is set to false and its Credits Earned field is cleared.