Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous 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 72: | Line 72: | ||
${ $date = strtotime($fieldname); $new_date = strtotime($date, "+1 day"); return date("Y-m-D", $new_date); }}> | ${ $date = strtotime($fieldname); $new_date = strtotime($date, "+1 day"); return date("Y-m-D", $new_date); }}> | ||
| | ||
- | //Please note, you have to use the related variable structure of custom functions ($field→module→field) and not the Template structure of variables. ($field (module) field) The Variable chooser do not know this and you need to change the format for yourself. | + | //Please note, you have to use the related variable structure of custom functions ($field→module→field) and not the Template structure of variables. ($field (module) field) The Variable chooser do not know this and you need to change the format for yourself.// |
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”] … |