Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Applications aggregate versioned objects in the system (these are, for example, tables, columns, scripts, widgets). They are Application is a pack of the VCS-records united by the same value in the application_id field. Applications are intended to hoard some businessworthy functionality that can be contributed into the system as a single entity. All the objects in the application have the same value in the application_id fieldIn fact, this is an individual system module that can be packed in the .SOP file in order to install it on other instances. For example, you can have your SimpleOne platform with the base functionality, and you can expand it by installing the ITSM, HRM, CRM and other applications that may be developed and delivered.
Tip |
---|
Role required: admin. |
Creating an application
To create an application and to add it into the repository, please complete the steps below:
- Add a new application:Click on the gear icon at icon
Image Added at the top right to enter the admin preferences menu;.
- Click on the icon icon
Image Addedon the right to the Application choice field.
- Click New and fill in the application selection choice list;fields.
- Click Save or Save and Exit to apply changes.
Info |
---|
Another way to create a new application is the following:
|
|
|
Application form fields
Field | Mandatory | Description |
---|---|---|
Name | Y | The application name. |
Table Prefix | N | Prefixes of the tables |
created within of this application. | ||
Slug | N | Unique identifier combined from the application name and the table prefix. This field is populated automatically. |
After that, switch to the created application. For this, enter the admin preferences menu again and select the created application in the Application choice list. Make sure that local pack for storing changes is created and available (the value in the Local Pack choice list is not empty).
When creating an application, a configuration pack will be automatically created
that isand named Default 1
, bound. It will bound to this application and
containingcontain one or more VCS-records.
Info |
---|
It is not recommended to use the Default 1 local pack. Please create another one. For this, perform the following steps:
|
Configuring the structure and logic
Developer responsible for this application has to configure its structure and to set up the logic.
Note: all necessary tables must be versioned (the is_vcs_enabled attribute must be equal to true);The developer should create:
See the Developer Tools articles to learn more.
Completing local packs
To complete local packs
After that, finish the development with the configuration pack completing. For this, please complete the steps below:
- Click on the gear icon icon
Image Added at the top right to enter the admin preferences menu;.
- Select your application in the Application choice list;.
- Click the icon icon
Image Added on the right to the Configuration Pack choice list; Local Pack choice field.
- Change the configuration pack state to Completed and click Save;
- Click Create Product Version Component button.
- The application will be added to the Application choice list.
Deleting an application
To delete an application from the repository, please complete the steps below:
- Navigate to Configuration → Application;
- Click on the application name you need to delete;
- Navigate to the hamburger menu and select Delete. Choose OK in the alert appeared.
Application
Приложение – совокупность версионируемых объектов в системе (таблицы, колонки, скрипты, виджеты). Цель Приложения – аккумулировать в себе объединенную неким общим признаком функциональность для дальнейшего добавления в систему в качестве единого целого. Все объекты в приложении объединены полем application_id. Конфиг-пак всегда относится к какому-то Приложению, равно как и записи в нём.
В системе всегда есть как минимум одно приложение и один локалпак, в котором фиксируются изменения записей в версионируемых таблицах, т.е. приложение "по умолчанию" и локалпак "по умолчанию".
Приложений, как и привязанных к ним локалпаков, может быть несколько. Локалпаков в составе одного приложения может быть больше одного.
Рассмотрим кейс
В системе создано несколько приложений:
Application 1, Application 2, Application 3.
В каждом из них создано по 3 локалпака. В итоге структура имеет такой вид:
- Application 1
- Localpack 1
- Localpack 2 – is_default
- Localpack 3
- Application 2
- Localpack 4 – is_default
- Localpack 5
- Localpack 6
- Application 3
- Localpack 7
- Localpack 8
- Localpack 9 – is_default
В таком случае допустимо установить флаг is_default на один локалпак в рамках каждого приложения. В итоге в системе может быть теоретически более одного локалпака «по умолчанию», но в каждый момент времени может быть выбран только один.
В аппликейшенах используется полиси
Политика защиты (Policy) используется для защиты конфигурационных данных платформы или бизнес-приложений, чувствительных к изменениям. У каждой записи в системе указано одно из трёх значений Policy, представленных ниже.
Как создать приложение
Для создания приложения необходимо проделать следующие действия:
- Зайти в настройки администратора, нажав шестеренку сверху справа;
- Нажать иконку рядом со списком выбора приложений;
- Нажать кнопку New на форме;
- Заполнить форму:
- Name / Наименование – наименование создаваемого приложения;
- Version / Версия – версия приложения;
- Prefix table / Таблица префиксов – префиксы таблиц, создаваемые в рамках данного приложения.
- Зайти в настройки администратора, нажав шестеренку сверху справа;
- Нажать на иконку рядом со списком выбора «Configuration Pack / Конфигурационный пакет»;
- Изменить статус в списке выбора «State / Статус» на «Completed / Завершено». После этого появляется возможность экспортировать локалпак в архивный файл формата .sop.
- Перевести локалпак в статус In Progress;
- Провести доработку, необходимую для их устранения;
- Повторно перевести локалпак в статус Completed и выгрузить .sop-файл.
- the value of the State field to Completed.
- Click Save or Save and Exit to apply changes.
- Click the Export Local Pack button to download the application so it can be installed on different instances. See the Configuration Packs article to learn more.
Info |
---|
Another way to open the local pack record is the following:
|
Note |
---|
Please note that when you develop an application, the records created in the pipeline of another application will be unavailable for updating (either editing or deleting). If you try to modify a record related to another application, you will get a warning message. In case you need to perform actions with this record, please switch to the application it belongs to. For information about switching between applications, please refer to the Admin Preferences article |
. |
Table of Contents | ||||
---|---|---|---|---|
|