Tuesday, July 1, 2014

Processing Notification in OT Content Server


The important agents related to notification are:


9000
Processes events taking place in content server
8999
Processing events from Notify events to LLEventQueue
9999
Sends emails from NotifyMessages to SMTP
4000
Deletes messages from NotifyMessages


The important tables related to notification are:

AgentConfig
Stores notification configuration
AgentSchedule
stores agent schedule configuration
AgentStats
stores notification statistics
NotifyInterests2
stores every user’s notification interest
NotifyEvents
stores events which have occurred in content server
LLEventQueue
an event is assigned to user, gets stored in this table
NotifyMessages
stores notification messages which are sent as email

To setup Notification:
  • Configure mail smtp settings
  • Enable notification from administrator page
  • Setup notification from Personal -> Notification section
  • Enable notification on desired location


Notification Process

If we enable notification over a folder so that user receives an email if a new item is added inside it, the process which content server follows from item addition to sending user an email follows the following steps:
  1. When an item is added, an event is generated which gets stored in NotifyEvents table.
  2. Agent 8999 processes these events from NotifyEvents to LLEventQueue and then deletes entry from NotifyEvents table.
  3. Agent 9000 processes requests from LLEventQueue and writes it down to NotifyMessages after checking user’s notification settings.
  4. Agent 9999 sends email for every entry in NotifyMessages table to SMTP server. After 9999 has finished processing, agent 4000 deletes entries in NotifyMessages table.
  5. Two threads enables agent to execute- Notify102, to handle all notification related agents and Agent101 to handle all other agents.