SR_CreateCourseConnections_TDTM
Study Registration trigger handler/TDTM to enroll students and create Course Connections and Session Connections
Table of Contents
Custom Permission | None |
Event | AfterInsert, AfterUpdate |
Object | Study Registration |
Related RIO Education Settings | None |
Description
This class is introduced in v3.14.
When there is a Study Offering that is linked to a Course Offering, and:
- a Study Registration is created, and,
-
its status defines that Upsert Enrollment = TRUE,
OR
- the Study Registration is updated to have a status value that defines Upsert Enrollment = TRUE,
then, this class will automatically generate a Course Connection with the correct Contact and Course Offering.
This class will also automatically create the Session Connections (if there are Sessions for that Course Offering).
If the Study Registration's status has a defined value for Course Connection/Session Connection Enrollment Status, then, this class will create the Course Connection/Session Connection with those defined values.
Use case
If a Study Offering is to be offered as a course that requires the usual RIO Education features (Sessions, grading, etc.), then, the Study Offering will be linked to a Course Offering.
When a student registers for the Study Offering, a Study Registration will be created.
By default, when the Study Registration is updated to Status = Confirmed, this class will then automatically enroll the student to a Course Connection (and Session Connections, if there are Sessions).
This is similar to how a student enrolls to Course Offerings via the enrollment wizard, which creates Course Connections and Session Connections.
The admin or faculty can then carry out the usual functions such as grading, taking attendance, etc.
For more details, see: How Continuing Education works.