Creating a Process Using an AI Assistant

Note

This feature is available in the Enterprise edition only.

This article covers creating the training process “Equipment Purchase Request” using the AI assistant — without manual configuration.

We will generate a minimal set of artifacts: a data type and a business process.

Creating a data type

Go to the AI assistant:

../_images/AI_01.png

Create a data type using a pre-prepared query. The query describes the request entity, its attributes, roles, and statuses:

Создай тип данных по описанию ниже.

Заявка на оборудование – заявка, которая необходима для закупки оборудования
для операционной деятельности сотрудников.
Например, для подключения монитора к компьютеру сотруднику необходим специальный
кабель, которого на данный момент нет в наличии.
Обычно сотрудник обращается к своему руководителю с просьбой приобрести необходимое
оборудование. После успешного согласования и в соответствии с внутренними регламентами
происходит закупка. Согласующий также может отказать в покупке.

Атрибуты:
1. name, Название оборудования, Text
2. price, Стоимость, Number
3. requester, Инициатор, Person
4. approver, Согласующий, Person

Роли:
5. requestor, Инициатор, из атрибута Инициатор
6. approver, Согласующий, из атрибута Согласующий

Статусы:
7. request-created, Заявка создана
8. approving, На согласовании
9. approved, Согласовано
10. rejected, Отказано
../_images/AI_02.png

The assistant processes the query and returns the generated data type:

../_images/AI_03.png

All required attributes, roles, and statuses are set. Confirm the deployment of the data type in the system:

../_images/AI_04.png

Follow the link that appears to open the created data type and check its contents.

Basic tab — parent: Case, form and journal created by default:

../_images/AI_05.png ../_images/AI_06.png

Attributes tab:

../_images/AI_07.png

Roles tab:

../_images/AI_08.png

Statuses tab:

../_images/AI_09.png

The data type is ready. Proceed to creating the business process.

Creating a business process

Go to the Administrator workspace, BPMN Models section:

../_images/AI_10.png

Create a model and select the previously created data type for it:

../_images/AI_11.png

Click “Create”:

../_images/AI_12.png

Go to the process editor:

../_images/AI_13.png

In the assistant, open the “BPMN Editor” tab:

../_images/AI_14.png

To generate the business process, use the following query:

Создай бизнес-процесс на основе типа данных Заявки на оборудование.

Описание процесса:
1. Заявка создана -> Задача на инициатора — «На согласование».
2. После отправки на согласование назначается задача на Согласующего —
   «На согласовании согласующим». У задачи 2 выхода: «Согласовать» и «Отказать».

Добавь соответствующие статусы и уведомления.

Note

The query explicitly requests adding notifications — the assistant will take this into account when generating the process.

../_images/AI_15.png

The process has been generated:

../_images/AI_16.png

Key process element settings:

../_images/1-1.png ../_images/1-2.png
../_images/2-1.png ../_images/2-2.png
../_images/3-1.png ../_images/3-2.png
../_images/4-1.png ../_images/4-2.png

The resulting process matches the description from the query:

../_images/AI_17.png

Enable the process (1), allow automatic start (2), and publish it (3):

../_images/AI_18.png

Starting and testing the process

Go to your personal workspace and add the journal to the menu:

../_images/AI_19.png

../_images/AI_20.png

Open the journal and create a request. Click “Save” — this will start the process:

../_images/AI_21.png

The first task “Send for Approval” will appear. Click “Send for Approval”:

../_images/AI_22.png

The second task “Under Approval by Approver” will open. Enter a comment and click “Reject”:

../_images/AI_23.png

The request moves to the “Rejected” status:

../_images/AI_24.png