PRSDST_PEGroupStatus_TDTM
PE group status trigger handler/TDTM
Table of Contents
Custom Permission | None |
Event | BeforeInsert, AfterInsert |
Object | PE Group |
Related RIO Education Settings | Group Plan Requirement RT Id |
Description
Firstly, whenever a PE Group record is inserted or updated, this class will set the Category and Credits fields using the corresponding values on the related Plan Requirement, if they are not already set.
When a new PE Group is inserted, if the Program Structure Type is not 'Subject Only', this class will create a student Course Connection for each Course Plan Requirement related to the PE Group's Plan Requirement. It links the new Course Connection to the Enrollment and its Contact and Program (Account), the Plan Requirement and the PE Group. It sets the Allow Pre-Enrollment and EFTSL using the corresponding values from the Plan Requirement and the Fee Type, Fee Type Option, Non Tuition Fee Type, and Non Tuition Fee Type Option fields using the corresponding values from the Enrollment.
If the Auto Credit Transfer custom setting is enabled, this class will also create completed Course Connections for courses already completed in a different program with grades of either RPL, Credit Transfer or Waiver.
If the Plan Requirement's Display as Required field is false, the Course Connection Creation Mode custom setting is not set to 'All', and the Course Connection is not needed for credit transfer, then the Course Connection is not created. This class also prevents duplicate Courses being created due to sharing groups and also checks if the course belongs to a shared group, and skips it if there's a main group that can create it.
If the PE Group's Plan Requirement has a parent Plan Requirement Group, then this class will also update the triggering PE Group's Parent PE Group field to point to the PE Group that is related to the Parent Plan Requirement.