Applications
What an application is, when to create your own, and how Servicely installs and upgrades the applications it ships.
An application is a named package of tables, fields, menus, workflows, roles and other configuration. Administrators use applications to keep one area of configuration apart from another, and to install and upgrade it on its own.
What an application holds
Every configuration record belongs to one application. Servicely ships its features as applications, such as platform, itsm and knowledge. Language packs are applications too. For the full list, see Products and applications.
Requesters and agents never see applications. They matter to the administrators who build and deploy configuration. While you work, the application selected in your user settings receives every record you create, such as a field, a trigger or a table operation.
When to create your own
Create an application for a logical set of functions, such as email handling, or for a business unit, such as human resources. A good test is whether the people who fulfil the processes need different roles and permissions.
| Situation | Decision |
|---|---|
| Human resources handles payroll and workplace requests, and does not fulfil IT requests | A separate application from IT |
| Human resources also handles training requests in the same way | The same application as the other human resources processes |
| The same team handles occupational health and safety, but the process differs a lot from human resources | A separate application |
The more two processes differ, the more they belong in separate applications, even when one team fulfils both.
Give your applications a namespace that starts with your organisation’s name, such as acme.ohs. This keeps them apart from the applications Servicely ships. To create one, see Create an application.
Application records
Each application has an application definition record under Application → Application → Application definitions.
| Field | Values |
|---|---|
| Type | Built in, Custom, Git or Git (Built in). The applications Servicely ships are Git (Built in). |
| Category | Production, Development or Debug. |
| Availability | General, or Restricted for an application offered only to some customers. |
| Installed version and Available version | The version on the instance and the version ready to install. |
The Install application and Upgrade application operations on the record install an application or bring it to the available version.
How applications are upgraded
Servicely upgrades the applications it ships when the instance starts. For each installed Git (Built in) application, it compares the Git hash stored on the application definition with the current one and applies the difference through the change set mechanism. Language packs are upgraded in the background. An application that is shipped but not installed only gets an application definition record.
The environment variable APPLICATION_DIRECTORY points to the application files, and DISABLE_APPLICATION_UPGRADE set to true turns the upgrade step off. For how to prepare for an upgrade, see Upgrade practice.