push ru help
All checks were successful
Deploy Static Site / deploy (push) Successful in 6m55s

This commit is contained in:
2025-05-28 05:24:40 +04:00
parent 0113fb8289
commit 041abbbd24
4459 changed files with 121310 additions and 86248 deletions

View File

@ -1,19 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ru">
<head>
<title>Additional parameters&nbsp;</title>
<title>Дополнительные параметры</title>
<meta name="generator" content="Help+Manual" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="In this section, you can add and store parameters and then use them in business process scripts. Unlike context variables whose values change from instance to instance,..." />
<meta name="description" content="В этом разделе вы можете добавлять и хранить параметры, а затем использовать их в скриптах внутри бизнес-процессов. В отличие от контекстных переменных, значение которых..." />
<meta name="picture" content="" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
<meta property="og:url" content="https://brix365.com/en/help" />
<meta property="og:image" content="" />
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
<meta property="og:url" content="https://elma365.com/ru/help" />
<meta property="og:image" content="" />
<meta property="og:site_name" content="ELMA365" />
<link rel="icon" href="favicon.png" type="image/png" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
@ -23,6 +24,7 @@
<link rel="stylesheet" href="./article.css" />
<link rel="stylesheet" href="./glossary.css" />
<link rel="stylesheet" href="./theme.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
@ -34,16 +36,16 @@
</head>
<body>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
<header class="header elma-365">
<div class="container">
<a class="header__logo" href="https://brix365.com/en/help">
<img src="./logo-en.svg" alt="header logo">
<a class="header__logo" href="https://elma365.com/ru/help">
<img src="./logo.svg" alt="header logo">
</a>
<!-- <div class="hero__search-form" id="search-panel">
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
<label class="search-form__label">
<span id="reset-search" class="search__icon"></span>
<input class="search-form__input" type="text">
@ -63,7 +65,7 @@
</div>
<div class="header__navi">
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
</div>
@ -78,8 +80,8 @@
<aside class="sidebar" id="sidebar">
<div class="sidebar__header">
<a class="header__logo" href="https://brix365.com/en/help">
<img src="./logo-light-en.svg">
<a class="header__logo" href="https://elma365.com/ru/help">
<img src="./logo-light.svg">
</a>
<span class="sidebar__close elma-365-close" id="close"></span>
</div>
@ -92,15 +94,15 @@
<div class="article-inner">
<div class="content">
<header class="article__header">
<div class="article__bread" style="display:flex; gap:10px;">
<div class="article__bread" style="display:flex; gap:10px;">
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
<div class="topic__breadcrumbs">
<p>System settings / Additional parameters&nbsp;</p>
<p>Администрирование системы&nbsp; / Дополнительные параметры</p>
</div>
</div>
<div class="topic__title"><h1 class="p_Heading1" style="text-align: center; line-height: 1.20; margin: 19px 0 19px 0;"><span class="f_Heading1" style="font-size: 32px;">Additional parameters</span></h1>
<div class="topic__title"><h1 class="p_Heading1" style="text-align: center; margin: 19px 0 19px 0;"><span class="f_Heading1" style="font-size: 32px;">Дополнительные параметры</span></h1>
</div>
</header>
@ -109,48 +111,48 @@
<a href="#h1-article" class="scroll-top"></a>
</div>
<!-- Placeholder for topic body. -->
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">In this section, you can add and store parameters and then use them in business process <a href="360027203731.html" class="topiclink">scripts</a>. Unlike <a href="process_context.html" class="topiclink">context variables</a> whose values change from instance to instance, parameters remain unchanged for all process instances. You can also use such parameters in server-side <a href="client_server_scripts.html" class="topiclink">widget scripts</a>.</p>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">All parameters are stored in one place. This means that in the future if you need to change a parameter, it won<span style="font-family: Inter;"></span>t require you to rewrite all scripts that access it. It will suffice to edit the data in the <span style="font-weight: bold;">Additional Parameters</span> section.<span class="f_ImageCaption"> <img alt="AP1" width="1082" height="348" style="margin:0;width:1082px;height:348px;border:none" src="ap1.png"/></span></p>
<p class="p_Normal" style="margin: 14px 0 0 0;">В этом разделе вы можете добавлять и хранить параметры, а затем использовать их в <a href="360027203731.html" class="topiclink">скриптах</a> внутри бизнес-процессов. В отличие от <a href="process_context.html" class="topiclink">контекстных переменных</a>, значение которых меняется от экземпляра к экземпляру, параметр остаётся неизменным для всех экземпляров процесса. Также такие параметры можно использовать в серверных <a href="client_server_scripts.html" class="topiclink">скриптах виджетов</a>.</p>
<p class="p_Normal" style="margin: 14px 0 0 0;">Параметры хранятся в разделе централизованно. Это значит, что в дальнейшем, если вам потребуется изменить параметр, не нужно будет вносить правки в скрипты, в которых он используются. Достаточно отредактировать данные в разделе <span style="font-weight: bold;">Дополнительные параметры</span>.</p>
<p class="p_Normal" style="margin: 14px 0 0 0;"><img alt="additional-parameters-1" width="1016" height="366" style="margin:0;width:1016px;height:366px;border:none" src="additional-parameters-1.png"/></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;примера</span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-weight: bold;">Example</span></p>
<p style="line-height: 1.20;">Suppose a company accepts orders from customers through a website. The website is integrated with <span style="font-size: 13px;">BRIX</span>. This allows exchanging information about order updates with the website, and customers are always aware of the progress on their orders.</p>
<p style="line-height: 1.20;">Such integration is implemented with a script. To ensure correct script operation, you need to specify the website address and token for authorization. No matter how many process instances there are, these parameters will remain unchanged. In addition, if the company decides to create another business process and set up integration with the website, the same parameters will be reused.</p>
<p style="line-height: 1.20;">Given this, it is convenient to store the site address and token in the <span style="font-weight: bold;">Additional Parameters</span> section. If the website address or token changes, the company employees won<span style="font-family: Inter;"></span>t have to check all the scripts in the processes. It will be enough to change the parameter in the <span style="font-weight: bold;">Additional Parameters</span> section.</p>
<p style="margin: 14px 0 0 0;"><span style="font-weight: bold;">Пример применения параметров</span></p>
<p>Предположим, компания принимает заказы от клиентов через сайт. Между сайтом и ELMA365 настроена интеграция. Это позволяет передавать данные о готовности заказа в личный кабинет на сайте.</p>
<p>Такая интеграция осуществляется при помощи скрипта. Для корректной работы скрипта необходимо указать адрес сайта и токен для авторизации. Неважно, сколько экземпляров процесса будет запущено, эти параметры останутся неизменными. Кроме того, если компания решит создать ещё один бизнес-процесс и настроить в нем интеграцию с сайтом, ей понадобятся те же самые параметры.</p>
<p>Учитывая это, удобно хранить адрес сайта и токен в разделе <span style="font-weight: bold;">Дополнительные параметры</span>. Если однажды адрес сайта или токен изменятся, сотрудникам компании не придётся проверять все скрипты в процессах. Достаточно будет изменить нужный параметр в соответствующем разделе.</p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;примера</span></p>
<p style="line-height: 1.20;"><span style="font-size: 13px; color: #000000;">&nbsp;</span></p>
<h2 class="p_Heading2"><a id="parameter-types" class="hmanchor"></a><span class="f_Heading2">Types of parameters </span></h2>
<p class="p_Normal" style="line-height: 1.20; margin: 19px 0 0 0;">Parameters can be divided into two groups:</p>
<h2 class="p_Heading2" style="margin: 19px 0 0 0;"><a id="parameter-types" class="hmanchor"></a><span class="f_Heading2" style="font-size: 24px;">Типы параметров</span></h2>
<p class="p_Normal" style="margin: 19px 0 0 0;">Параметры можно разделить на три группы:</p>
<p class="p_Normal" style="margin: 19px 0 0 0;">&nbsp;</p>
<ul style="list-style-type:disc">
<li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Global parameters</span>. These parameters are set at the company level and are always accessible in company processes and widgets created at the company level. You can also use them when creating scripts in &nbsp;any <a href="360007990371.html" class="topiclink">workspace</a> or <a href="360006963072.html" class="topiclink">app</a> after enabling the <code><b>Global</b></code> constant setting. Please note that in this case, you will not be able to export such workspace or app.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Workspace parameters</span>. These parameters are set at the workspace level. &nbsp;Workspace parameters are always accessible from the workspace processes. In addition, these parameters can be applied in the app business processes, after enabling the <code><b>Namespace</b></code> constant setting.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">App parameters</span>. These parameters are defined at the app level and are accessible in processes and widgets created at the app level.</li></ul>
<li><span style="font-weight: bold;">глобальные параметры</span> — заданы на уровне компании и всегда доступны для использования в процессах компании и виджетах, созданных на уровне компании. Также вы можете применять их при создании скриптов в любом <a href="360007990371.html" class="topiclink">разделе</a> или <a href="360006963072.html" class="topiclink">приложении</a>, но для этого необходимо включить использование константы <code><b>Global</b></code>. Обратите внимание, в таком случае экспорт раздела или приложения станет недоступен;</li><li><span style="font-weight: bold;">параметры раздела</span> — заданы на уровне раздела и всегда доступны для использования в процессах и виджетах этого раздела. Кроме того, эти параметры могут применяться в процессах и виджетах приложений, входящих в раздел, но для этого необходимо включить использование константы <code><b>Namespace</b></code>;</li><li><span style="font-weight: bold;">параметры приложения</span> — заданы на уровне приложения и доступны для использования в процессах и виджетах, созданных на уровне этого приложения.</li></ul>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;внимание</span></p>
<p class="p_Normal" style="line-height: 1.20; margin: 19px 0 0 0;">Using <code><b>Global.params</b></code> or<span style="font-size: 15px; font-family: Inter; color: #212529; background-color: #ffffff;">&nbsp;</span><code><b>Namespace.params</b></code> constants in scripts restricts the export of system components. Read more about it in <a href="global-constants.html#export" class="topiclink">Global constants in scripts</a>.</p>
<p class="p_Normal">Использование констант <code><b>Global</b></code> или <code><b>Namespace</b></code> в скриптах ограничивает экспорт компонентов системы. Подробнее об этом читайте в статье <a href="global-constants.html#export-restrictions" class="topiclink">«Глобальные константы в скриптах»</a>.</p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;внимание</span></p>
<h2 class="p_Heading2" style="line-height: 1.20; margin: 19px 0 0 0;"><span class="f_Heading2" style="font-size: 24px;">Create a new parameter</span></h2>
<h2 class="p_Heading2" style="margin: 19px 0 0 0;"><span class="f_Heading2" style="font-size: 24px;">Создание параметров</span></h2>
<ol style="list-style-type:upper-roman">
<li value="1" class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">Create a parameter in one of the following ways:<ul style="list-style-type:disc">
<li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">Go to <span style="font-weight: bold;">Administration &gt; System Settings &gt; Additional Parameters</span>. Here you can set global parameters as well as parameters for a workspace or an app.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">Select a workspace, go to its settings, and click <span style="font-weight: bold;">Additional Parameters</span>. Here you can only set parameters for a specific workspace and its apps.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">In a workspace, select an app, go to its settings, and click <span style="font-weight: bold;">Additional Parameters</span>. Here you can only set parameters for an app.</li></ul>
<li value="2" class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">On the page that opens, in the upper right corner, click on the <span style="font-weight: bold;">+ Parameter</span> button.</li></ol>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 34px;"><img alt="AP2" width="1110" height="343" style="margin:0;width:1110px;height:343px;border:none" src="ap2.png"/></p>
<li value="1" class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">Перейдите к созданию параметра одним из следующих способов:<ul style="list-style-type:disc">
<li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">откройте страницу <span style="font-weight: bold;">Администрирование &gt; Настройки системы</span> <span style="font-weight: bold;">&gt;</span> <span style="font-weight: bold;">Дополнительные параметры</span>. Здесь можно задать как глобальные параметры, так и параметры раздела или приложения;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">выберите раздел и в меню его настроек нажмите <span style="font-weight: bold;">Дополнительные параметры</span>. Здесь можно задать только параметры конкретного раздела и его приложений;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">в разделе выберите приложение и в меню его настроек нажмите <span style="font-weight: bold;">Дополнительные параметры</span>. Здесь можно задать только параметры конкретного приложения.</li></ul>
<li value="2" class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">На открывшейся странице в правом верхнем углу нажмите на кнопку <span style="font-weight: bold;">+ Параметр</span>.</li></ol>
<p class="p_Normal" style="margin: 14px 0 0 34px;"><img alt="additional-parameters-2" width="1016" height="366" style="margin:0;width:1016px;height:366px;border:none" src="additional-parameters-2.png"/></p>
<ol style="list-style-type:upper-roman" start="3">
<li value="3" class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;">In the window that opens, fill in the following fields:</li></ol>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 34px;"><img alt="AP3" width="474" height="380" style="margin:0;width:474px;height:380px;border:none" src="ap3.png"/></p>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">&nbsp;</p>
<li value="3" class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;">В открывшемся окне заполните следующие поля:<br />
<img alt="additional-parameters-3" width="530" height="488" style="margin:0;width:530px;height:488px;border:none" src="additional-parameters-3.png"/></li></ol>
<ul style="list-style-type:disc">
<li style="line-height: 1.20;"><span style="font-weight: bold;">Display Name</span><span style="font-weight: bold; color: #ff0000;">*</span>.<span style="font-weight: bold;"> </span>Enter the name that will be displayed in the list of parameters.</li><li style="line-height: 1.20;"><span style="font-weight: bold;">Property Name</span><span style="font-weight: bold; color: #ff0000;">*</span>.<span style="font-weight: bold;"> </span>This name is generated automatically based on the parameter name. If necessary, you can edit it.</li><li style="line-height: 1.20;"><span style="font-weight: bold;">Tip</span>.<span style="font-weight: bold;"> </span>Here you can enter additional information about the parameter.</li><li style="line-height: 1.20;"><span style="font-weight: bold;">Type</span><span style="font-weight: bold; color: #ff0000;">*</span>.<span style="font-weight: bold;"> </span>The <a href="360009707032.html" class="topiclink">data type</a> that this parameter stores.</li><li style="line-height: 1.20;"><span style="font-weight: bold;">Value</span>.<span style="font-weight: bold;"> </span>Specify the value of the parameter.</li></ul>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">If necessary, the parameter value can be changed. To do this, select the value you want to correct in the list of parameters, and then click on the pencil icon.</p>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;"><img alt="AP4" width="631" height="155" style="margin:0;width:631px;height:155px;border:none" src="ap4.png"/></p>
<h2 class="p_Heading2" style="line-height: 1.20; margin: 19px 0 0 0;"><span class="f_Heading2" style="font-size: 24px;">Example of using additional parameters</span></h2>
<li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Отображаемое имя</span><span style="font-weight: bold; color: #ff0000;">*</span> — укажите название, которое будет отображаться в списке параметров;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Имя свойства</span><span style="font-weight: bold; color: #ff0000;">*</span> — генерируется автоматически, исходя из названия параметра. При желании вы можете отредактировать содержимое поля;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Подсказка</span> — здесь можно указать дополнительную информацию о параметре;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Тип</span><span style="font-weight: bold; color: #ff0000;">*</span> <a href="360009707032.html" class="topiclink">тип данных</a>, которые хранит данный параметр;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><span style="font-weight: bold;">Значение</span> — в этом поле задайте значение параметра.</li></ul>
<p class="p_Normal" style="margin: 14px 0 0 0;">Значение параметра можно изменить. Для этого выберите его в списке параметров и нажмите значок карандаша.</p>
<p class="p_Normal" style="margin: 14px 0 0 0;"><span class="f_ImageCaption"> <img alt="additional-parameters-4" width="572" height="137" style="margin:0;width:572px;height:137px;border:none" src="additional-parameters-4.png"/></span></p>
<h2 class="p_Heading2" style="margin: 19px 0 0 0;"><span class="f_Heading2" style="font-size: 24px;">Использование параметров</span></h2>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;внимание</span></p>
<p class="p_Normal" style="line-height: 1.20; margin: 19px 0 0 0;">Parameters <code><b>Global.params</b></code><span style="font-size: 15px; font-family: Inter; color: #212529; background-color: #ffffff;">,&nbsp;</span><code><b>Namespace.params</b></code><span style="font-size: 15px; font-family: Inter; color: #212529; background-color: #ffffff;">,&nbsp;</span><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace; font-weight: bold; color: #394149;">and </span><code><b>Application.params</b></code><span style="font-size: 15px; font-family: 'Courier New',Courier,monospace; font-weight: bold; color: #394149;"> </span>are only available in server scripts and are read-only.</p>
<p class="p_Normal"><span style="font-size: 15px; color: #212529; background-color: #ffffff;">Параметры&nbsp;</span><code><b>Global.params</b></code><span style="font-size: 15px; color: #212529; background-color: #ffffff;">,&nbsp;</span><code><b>Namespace.params</b></code><span style="font-size: 15px; color: #212529; background-color: #ffffff;">,&nbsp;</span><code><b>Application.params</b></code><span style="font-size: 15px; color: #212529; background-color: #ffffff;">&nbsp;доступны только в серверных скриптах и только для чтения.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;внимание</span></p>
<p class="p_Normal" style="line-height: 1.20; margin: 19px 0 0 0;">Consider a solution set up for the tech support department. While performing process tasks in BRIX, an employee describes the issue, and then using a script, the data is sent to GitLab, bug tracking system. There, the ticket is automatically created with a title and description, and the executor is selected.</p>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">To implement this integration, you can set up the following additional parameters:</p>
<p class="p_Normal">Рассмотрим решение для техподдержки. В ходе процесса в ELMA365 сотрудник описывает возникшую проблему, а затем при помощи скрипта данные отправляются в систему для отслеживания сообщений об ошибках — GitLab. Там автоматически создаётся задача с заголовком и описанием, а также выбирается исполнитель.</p>
<p class="p_Normal" style="margin: 14px 0 0 0;">Чтобы реализовать такую интеграцию, заданы следующие дополнительные параметры:</p>
<ul style="list-style-type:disc">
<li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_host</b></code>. Server address.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_project</b></code>. Identifier of the project that will include a new ticket.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_token</b></code>. Authorization token.</li><li class="p_Normal" style="line-height: 1.20; margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_user</b></code>. A user who will deal with the ticket.</li></ul>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">The ticket subject and description are defined through the context variables<span style="font-style: italic;"> </span><code><b>title</b></code><span style="font-style: italic;"> </span>and <code><b>description</b></code>.</p>
<p class="p_Normal" style="line-height: 1.20; margin: 14px 0 0 0;">The script looks as follows:</p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async&nbsp;</span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample">&nbsp;createIssueInGitlab():&nbsp;Promise&nbsp;{</span><br />
<span class="f_CodeExample">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="f_CodeExample" style="font-weight: bold;">const</span><span class="f_CodeExample">&nbsp;issue&nbsp;=&nbsp;await&nbsp;fetch(`${&nbsp;Namespace.params.data.gitlab_host&nbsp;}/api/v4/projects/${&nbsp;Namespace.params.data.gitlab_project&nbsp;}/issues`,&nbsp;{</span><br />
<li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_host</b></code> — адрес сервера;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_project</b></code> — идентификатор проекта, в котором будет создаваться тикет;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_token</b></code> — токен авторизации;</li><li class="p_Normal" style="margin-top: 14px; margin-right: 0; margin-bottom: 0;"><code><b>gitlab_user</b></code> — пользователь, на которого тикет будет назначен.</li></ul>
<p class="p_Normal" style="margin: 14px 0 0 0;">Заголовок задачи и описание определяются через контекстные переменные <code><b>title</b></code> и <code><b>description</b></code>.</p>
<p class="p_Normal" style="margin: 14px 0 0 0;">Скрипт выглядит следующим образом:</p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async&nbsp;function&nbsp;createIssueInGitlab():&nbsp;Promise&nbsp;{</span><br />
<span class="f_CodeExample">&nbsp;&nbsp;&nbsp;&nbsp;const&nbsp;issue&nbsp;=&nbsp;await&nbsp;fetch(`${&nbsp;Namespace.params.data.gitlab_host&nbsp;}/api/v4/projects/${&nbsp;Namespace.params.data.gitlab_project&nbsp;}/issues`,&nbsp;{</span><br />
<span class="f_CodeExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method:&nbsp;'post',</span><br />
<span class="f_CodeExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;headers:&nbsp;{</span><br />
<span class="f_CodeExample">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'PRIVATE-TOKEN':&nbsp;Namespace.params.data.gitlab_token,</span><br />
@ -180,7 +182,7 @@
</div>
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
</section>
</div>
@ -188,7 +190,7 @@
<input type="checkbox" />
<div class="article__arrow"></div>
<div class="table-of-contents elma365-right" id="toc2Content">
<h3 class="h3-toc">In this topic</h3>
<h3 class="h3-toc">В этой статье</h3>
<nav id="toc2"></nav>
</div>
</aside>
@ -199,30 +201,63 @@
<div class="footer-container">
<div class="footer-mobile">
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
</div>
<div class="footer-wrap">
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
<div class="footer-flex-b">
<span class="footer-copy">&copy; 2025 BRIX</span>
<ul class="footer-list">
<li class="footer-item">
<a href="#" class="arrow-top" style="display: block;"></a>
</li>
</ul>
<div class="container">
<div class="footer-wrap">
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
<div class="footer-flex-b">
<div class="footer-top">
<span class="footer-copy">&copy; 2025
ELMA365
</span>
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
</a>
</div>
<div class="footer-line">
<div class="footer-line-copy">
<span class="footer-copy">&copy; 2025
ELMA365
</span>
</div>
<ul class="footer-list">
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
<li class="footer-item">
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<a href="#" class="arrow-top"></a>
</div>
</footer>
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
<iframe name="hmnavigation" style="display:none!important"></iframe>
<script src="./jquery-ui.js"></script>
<!--<script src="./jquery-ui.js"></script> -->
<script src="./jquery-ui.min.js"></script>
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
<script src="./jquery.tocify.min.js"></script>
<script src="./TypoReporter.min.js"></script>