- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/automation/engine/templatescope.php
- Класс: BitrixBizprocAutomationEngineTemplateScope
- Вызов: TemplateScope::toArray
public function toArray(): array
{
$documentService = CBPRuntime::GetRuntime(true)->getDocumentService();
return [
'DocumentType' => [
'Type' => $this->getComplexDocumentType(),
'Name' => $documentService->getDocumentTypeName($this->complexDocumentType),
],
'Category' => [
'Id' => $this->getCategoryId(),
'Name' => $this->categoryName,
],
'Status' => [
'Id' => $this->getStatusId(),
'Name' => $this->statusName,
'Color' => $this->statusColor,
],
];
}