1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
deletestepper.php
См. документацию.
1<?php
2
4
6
12{
13 protected static $moduleId = 'bizproc';
14 private static $delay = 0;
15
16 private const STEP_ROWS_LIMIT = 10;
17
18 public function execute(array &$option)
19 {
20 $documentId = $this->getOuterParams();
21 $ids = \CBPStateService::getIdsByDocument($documentId, self::STEP_ROWS_LIMIT);
22
23 if (empty($ids))
24 {
25 \CBPHistoryService::DeleteByDocument($documentId);
26 return self::FINISH_EXECUTION;
27 }
28
29 foreach ($ids as $id)
30 {
31 \CBPDocument::killWorkflow($id, false);
32 }
33
34 return self::CONTINUE_EXECUTION;
35 }
36
37 public static function bindDocument(array $documentId): void
38 {
39 $ids = \CBPStateService::getIdsByDocument($documentId, 1);
40 if (empty($ids))
41 {
42 return;
43 }
44
45 self::$delay += 60;
46 static::bind(self::$delay, $documentId);
47 }
48}
static bindDocument(array $documentId)
Определения deletestepper.php:37
getOuterParams()
Определения stepper.php:212
static getIdsByDocument(array $documentId, int $limit=null)
Определения stateservice.php:321
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$option
Определения options.php:1711