Events Flashcards
What is an event?
A special log record the system generates when something notable has happened or when certain conditions occur
What are examples of events?
- When a user logs in
- When someone approves a request
- When someone submits a new KB article
What happens in the system when an event occurs?
The system responds to the event with pre-defined actions in response to the condition(s)
What does the system use to monitor for system conditions?
Business Rules
Which fields on the Business Rule form are used to configure / script trigger conditions and responding actions?
- When to run
- ** Actions**
- Advanced (for writing the script)
What is the other strategy used by the system to generate an event?
The GlideSystem eventQueue() method
What does the responding action do when a condition is met?
The responding action generates an event record in the Event [sysevent] table
How are events named by convention?
**<table name>.<unique>**</unique>
(ex: event.updated, problem.closed)
Where to navigate to see logs of generated events?
All > System Policy > Events > Event Log
Event table is also called event log or event queue
How do Scheduled jobs work?
- Read the event queue
- Forward events to appropriate handler for processing
- Handler uses info passed in from event records to take some action like:
- Send a notification
- Run a script action
- Trigger a flow
Where to navigate to register a new event?
All > System Policy > Events > Registry
Why must an event be registered before it can be used?
- Because event registration documents events definitions
- Event registration lets parts of the system see an event in their lists of events and react to it when it occurs