Business rules installed with Notify
Notify adds the following business rules.
| Business rule | Table | Description |
|---|---|---|
| No Call Workflows for Shortcodes | [notify_group] | Checks and displays an error if the call is being triggered by a short code. |
| Update Participant Duration | [notify_participant] | Updates participant duration when it becomes inactive. |
| Check if Notify call exists and active | [notify_participant_session] | Checks if Notify call has valid reference record and updates it if the call is inactive currently. |
| Update Last Active On | [notify_participant] | Sets the last active before insertion/update of Notify participant. |
| Show info msg about selection in choice | [notify_group_selector_choice] | Displays a message if either Notify group or conference provider is not selected. |
| Validate values in the choice | [notify_group_selector_choice] | Checks if either of Notify group or conference provider is filled. |
| Set scratchpad values | [notify_group_selector_choice] | Checks if conference provider is available by iterating through service provider list. |
| Show message for empty choices | [notify_group_selector] | Displays an info message if there are no choices for the provider selector. |
| Clear fields when Manual Selection is set | [notify_group_selector] | Clears out some fields when manual selection is set in Notify group selector table. |
| Update Participant Duration | [notify_participant_session] | Calculates the duration of participant on conference call. |
| Update session muted state | [notify_participant] | Sets the value of mute and expelled to true once the conference call participant becomes inactive. |
| Update conference call | [notify_participant] | Sets the state of conference call based on the participant leaving or joining the call. |
| Validate Order field value | [notify_group_selector] | Validates order field value to be unique amongst all provider selectors. |
| Restrict Workflows For only Voice Nums | [notify_number] | Restricts association of voice only capable number with number group having inbound/outbound SMS workflows. |
| Restrict Workflows For only SMS Numbers | [notify_number] | Restricts association of SMS only capable number with number group having inbound/outbound voice workflows. |
| Validations on default record | [notify_group_selector] | Validates that source table and order field are mandatory in case of default set to false and both fields empty in case of default set to true. |
| Clearing fields when Default is true | [notify_group_selector] | Clears out some fields when default is set to true. |
| No Default selector set | [notify_group_selector] | Ensures one active provider selector is set as default. |
| Check active default selector is unique | [notify_group_selector] | Ensures only one provider selector is set as default. |
| Process SMS preferences for incoming SMS | [notify_message] | When an SMS preference configuration defined for a particular telephony provider, then apply it for every incoming SMS. |
| Check default notify group is unique | [notify_group] | Validates that not more than one group is set as default Notify group. |
| Trigger conference end | [notify_conference_call] | When a conference call ends, triggers the notify.conference.end event |
| Update Call Active State | [notify_call_status] | Updates the status of the call in notify_call_status with the status received from Twilio. |
| Update Conference Call Active State | [notify_participant | Updates the active flag in notify_participant table. Also calculates the duration when the call is ended by a participant. |
| Update Participant Active State | [notify_participant_session] | Updates the active flag for the participant (notify_participant), and calculates the total time on the call upon disconnecting from the call. |
| Update Participant Session Active State | [notify_call] | Synchronizes the state of the call between notify_call and notify_participant_session. Upon disconnecting from the call, updates notify_participant_session with the duration of the call. |
| Warn for incorrectly configured workflow | [notify_group] | Checks notify_group table and displays an error if the a workflow is not configured correctly |