Send Notifications - department-of-veterans-affairs/caseflow GitHub Wiki

SendNotificationJob

This is a rails active job that will get triggered from detecting a payload getting passed in its perform method and it will take in the payload as its arguments.

Audit Record Creation

Once it finished parsing the message it will then create a Notification record in the db with the message attributes as its properties and also what type of notification(s) that will be sent out before sending to the VA Notify Service. It will fill in the attributes:

Appeals ID - The ID of the appeal

Appeals Type - The type of the appeal

Email Notification Status - The current status of the email notification

SMS Notification Status - The current status of the sms notification

Event Type - The notification template that is getting sent

Notification Type - The type of notification that got sent out (Email, SMS or None)

Participant ID - The person id that is used to look up a person's profile and contact info

Updating the Audit Record

Once it has finished sending the notification the notification record will then update the notification_content with the body text of the notification and the current status of the sent notification

Notification Content - The notification body text

Check here if you want to see an overview of the process