/
Add New Course with Notification Rule Attributes

Add New Course with Notification Rule Attributes

Task https://rippleops.atlassian.net/browse/SUCO-598 adds course link attributes which are used for notification rules to enable/disable certain notifications on a per course level. In order for the notification rules to work we would need to add below link attributes to ALL courses of an organization. Unfortunately, there is no automatic mechanism which would do that so we need to add the 4 course link attributes manually whenever a course is created.

Add Course Link Attributes

If a new course is added to an org add the following link attributes at the course level:

addLinkAttribute [coursePath] System.Customer.Notification.SendOn.CertificatePreExpiry True addLinkAttribute [coursePath] System.Customer.Notification.SendOn.CertificateExpiry True addLinkAttribute [coursePath] System.Customer.Notification.SendOn.StudentRegistration True addLinkAttribute [coursePath] System.Customer.Notification.SendOn.StudentDeRegistration True addLinkAttribute [coursePath] System.Customer.Notification.SendOn.RegistrationCompleted True

Enable/Disable Notifications for a Course

By default - all course link attributes’ values should be set to True when a course is created. unless the customer has other requirements.

The following notifications can be enabled/disabled per course:

  • Category: Certificate, SubCategory: CertificatePreExpiry

  • Category: Certificate, SubCategory: CertificateExpiry

  • Categort: Registration, SubCategory: StudentRegistration

  • Category: Registration, SubCategory: StudentDeRegistration

  • Category: Registration, SubCategory: RegistrationCompleted

In order to stop sending certain notifications for a course, just set the corresponding course link attribute value(s) to False. Set the value(s) to True to enable the notifications.

Notes:

Check the notification rules of the organization whether the notification is only gauged by the 2 predicates IsCategory and LinkAttributeIsEqualTo. Some organizations have additional predicates for their notification rules and enabling notifications may require more than just updating the attribute values.

Custom Setups for Customers

Blue Water Yachting

Course Link Attributes

addLinkAttribute [coursePath] System.Customer.Notification.SendOn.StudentPassedExam True addLinkAttribute [coursePath] System.Customer.Notification.SendOn.StudentFailedExam True

The following notifications can be enabled/disabled per course:

  • Category: Exam, SubCategory: ExamCompleted

The 2 Exam,ExamCompleted link attributes are set up with 2 notification templates and rules (i.e. Blue Water Yachting).

Notification Rules

AddOrgNotificationRule /Root/BWY IsCategory(Exam,ExamCompleted);AssessmentGradeGreaterOrEqual(60);LinkAttributeIsEqualTo(System.Customer.Notification.SendOn.StudentPassedExam,true) Constant([receiver email address]) Email PassedExam AddOrgNotificationRule /Root/BWY IsCategory(Exam,ExamCompleted);AssessmentGradeLessThan(60);LinkAttributeIsEqualTo(System.Customer.Notification.SendOn.StudentFailedExam,true) Constant([receiver email address]) Email FailedExam