Presentation
To activate this view, click on the "Notifications" tab on the console panel:

- The left pane displays all registered commands, with the number of times they have been runned
- The center pane displays the history of a given command, with its command number for this type of command, and the line where it started from
- The right pane is for inspecting the parameters of each individual command (coming from initial CairngormEvent that is associated with the command)
- The left pane displays the stack trace for the selected command
To get more information about this view, please go to Reference guide
How to use the Notifications view
We will continue to discover the demo application in order to learn how to use the console.
Please, restart the demo application, and once the console opened, switch to the "Commands" tab.
List of commands
What we discover in the left pane is the list of all registered commands, (ie registered at the FrontController level through Cairngorm registerCommand method). The second column of the datagrid displays the number of times each command has been executed.
Select the line containing for "LoadEmployeesCommand": the center list now displays the history of that command, with the starting line for each of these entries. There is only one item as this command has been executed only once until now.
Thus, after startup, we discover that:
- The application has registered 8 different commands
- LoadEmployeesCommand is the only command that has been runned
- LoadEmployeeCommand has been started from CafeTownsend.mxml, method loadEmployee(), line 46:
private function loadEmployees() : void {
var cgEvent : LoadEmployeesEvent = new LoadEmployeesEvent();
CairngormEventDispatcher.getInstance().dispatchEvent(cgEvent);
}
Notifications (Cairngorm events) in action
The main list is live and is refreshed in real time, according to what happens in your application:
- When a new CairngormEvent is dispatched in the system, a new line will appear in this list
- When an event is dispatched:
- The corresponding line is moved to the top of the list, so that the first displayed events are always the last that have been dispatched.
- The corresponding line will glow, so that you have a visual clue of what event has been dispatched
- The notification counter will be incremented by one unit
In the right pane, we are now able to inspect the contents of the events.
You may now play with the application for a while, and observe what events are dispatched, from where they come from and what are their parameters.
Next >> HTTP Services