• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/Operation/Update.php
  • Класс: Bitrix\Crm\Service\Operation\Update
  • Вызов: Update::checkRunningWorkflows
public function checkRunningWorkflows(): Result
{
	$result = new Result();

	if (
		$this->item->isCategoriesSupported()
		&& $this->item->isChangedCategoryId()
		&& $this->bizProcHelper::HasRunningWorkflows($this->item->getEntityTypeId(), $this->item->getId())
	)
	{
		$result->addError(new Error(
			Loc::getMessage('CRM_OPERATION_UPDATE_ITEM_HAS_RUNNING_WORKFLOWS'),
			static::ERROR_CODE_ITEM_HAS_RUNNING_WORKFLOWS
		));
	}

	return $result;
}