Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:start:template_features [2016/07/07 17:07] admin [4. Вставка пользовательских функций в шаблон обычных полей] |
en:start:template_features [2016/07/07 17:16] admin [4. Insert of custom functions inside default template fields] |
||
---|---|---|---|
Line 76: | Line 76: | ||
Other examples I will mention on a separate [[en:start:custom_functions|custom function]] page. | Other examples I will mention on a separate [[en:start:custom_functions|custom function]] page. | ||
- | ====== 5. Использование локальных переменных (Только зеленые текстовые поля и пользовательские функции) ====== | ||
- | Локальные переменные могут быть использованы чтобы передавать значение из одной Задачи в другую. Они не будут очищены после того, как выполнена Задача, в которой они инициализированы и доступны до окончания выполнения всего Бизнес-Процесса. | + | ====== 5. use environment variables (Only Green Textfields and custom functions) ====== |
+ | This environment variables could be used to transfer a value from one task to another task, because they won’t be clear after the task is ready. | ||
- | Для доступа к локальным переменным используется массив **$env**. Чтобы задать значение локальной переменной variableame, вам необходимо использовать конструкцию: **$env[“variableame”] = “значение переменной”;**. Для чтения значения: … **$env[“variablename”]** … | + | You could access this variable normally with the $env – Array. To set a $env Variable you have to use: $env[“variableame”] = “content of the env. variable”; If you want to get this value in another/or the same task, you only should use |
+ | |||
+ | … $env[“variablename”] … |