• Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/lib/automation/engine/runtime.php
  • Класс: BitrixBizprocAutomationEngineRuntime
  • Вызов: Runtime::writeCategoryTracking
private function writeCategoryTracking($workflowId): ?int
{
	$documentService = CBPRuntime::GetRuntime(true)->getDocumentService();
	$categories = $documentService->getDocumentCategories($this->target->getDocumentType());

	$categoryName = $categories[$this->target->getDocumentCategory()]['name'];

	return $this->writeDocumentCategoryTrack($workflowId, $categoryName);
}