1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
filltypeswithsettingsvaluesstepper.php
См. документацию.
1<?php
2
4
5use Bitrix\Bizproc\WorkflowTemplateTable;
7
9{
10 protected static $moduleId = 'bizproc';
11 private const STEP_ROWS_LIMIT = 100;
12
13 public function execute(array &$option)
14 {
15 $lastId = (int)($this->getOuterParams()[0] ?? 0);
16 $newLastId = null;
17
18 $result = \CBPWorkflowTemplateLoader::getList(
19 ['ID'=>'ASC'],
20 ['>ID' => $lastId],
21 false,
22 ['nTopCount' => self::STEP_ROWS_LIMIT],
23 ['ID', 'AUTO_EXECUTE', 'TEMPLATE', 'MODULE_ID', 'ENTITY', 'DOCUMENT_TYPE']
24 );
25
26 $loader = \CBPWorkflowTemplateLoader::GetLoader();
27
28 while ($row = $result->fetch())
29 {
30 try
31 {
32 $newLastId = (int)$row['ID'];
33 $loader->getTemplateType($row);
34 $loader->setTemplateType($row);
35
36 WorkflowTemplateTable::update(
37 $row['ID'],
38 ['TYPE' => $row['TYPE']],
39 );
40 }
41 catch (\Throwable $e)
42 {
43
44 }
45 }
46
47 if ($newLastId && $newLastId !== $lastId)
48 {
49 $this->setOuterParams([$newLastId]);
50
51 return self::CONTINUE_EXECUTION;
52 }
53
54 return self::FINISH_EXECUTION;
55 }
56}
getOuterParams()
Определения stepper.php:212
setOuterParams(array $outerParams)
Определения stepper.php:207
if(!\Bitrix\Main\Loader::includeModule('clouds')) $lastId
Определения sync.php:68
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$option
Определения options.php:1711