• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/factory.php
  • Класс: BitrixTasksIntegrationBizprocAutomationFactory
  • Вызов: Factory::stopAutomation
static function stopAutomation($documentType, $documentId)
{
	if (empty($documentId) || !static::canUseAutomation())
	{
		return;
	}

	$automationTarget = static::createTarget($documentType, $documentId);
	$automationTarget->getRuntime()->onDocumentMove();
}