Finsemble: Understanding Application Startup

Understanding Application Startup

When OpenFin is launched via npm run dev, or via an installed application icon, the application startup begins. Locally, it follows the build process. Remotely, it all happens when the user double-clicks the icon.

  1. Application checks to see if it has the latest OpenFin Runtime (using the OpenfinRVM).
    • If so, proceed to step 2.
    • If not, update Runtime.
  2. After the application has the proper Runtime, it looks for the OpenFin manifest (i.e. starting config file) and starts your startup_app. The initial startup_app is the ServiceManager, within the Finsemble application, that loads within a hidden window.
  3. ServiceManager spawns all of our services as hidden HTML windows.
  4. Once all of the services are ready, the WorkspaceService begins spawning windows.
    • Menus are spawned and hidden. They are later moved to the appropriate position when called upon.
    • Toolbars are placed on every monitor.
  5. Workspace is loaded.

    • If there are workspaces found in storage, the most recently used workspace is populated on the screen.
    • If no workspaces are found, a default workspace is loaded.

      To know more about events that happen once the application is started, check out the Finsemble Lifecycle Events tutorial.