Метод complete
Сигнатура метода
public function complete(int $activityId, bool $isCompleted, ActivityOperationContext $operationContext, ?CompletionStatus $completionStatus = null): Result
Возвращает:
Result
Описание
Completes the activity, or reopens it. The status of the completion is not assigned here and is normally not assigned by the caller either: the validation of the update derives it from the previous state, which is what keeps an automatically completed activity automatically completed. The one caller naming it is the automatic completion itself.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activityId
|
int
|
—
|
—
|
$isCompleted
|
bool
|
—
|
—
|
$operationContext
|
ActivityOperationContext
|
—
|
—
|
$completionStatus
|
?CompletionStatus
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/ActivityLifecycleService.php
Расположение метода в файле
Строки
135–155