3namespace Bitrix\Bizproc\Automation\Engine;
5use Bitrix\Bizproc\WorkflowTemplateTable;
7use Bitrix\Main\Localization\Loc;
13 private $complexDocumentType;
15 private $documentCategoryId;
17 private $documentStatus;
20 private $categoryName;
28 $this->complexDocumentType = $documentType;
29 $this->documentCategoryId = $categoryId;
30 $this->documentStatus =
$status;
47 public function setNames(?
string $categoryName, ?
string $statusName): self
49 $this->categoryName = $categoryName;
50 $this->statusName = $statusName;
57 $this->statusColor = $color;
64 return "{$this->getModuleId()}_{$this->getDocumentType()}_{$this->getCategoryId()}_{$this->getStatusId()}";
84 return $this->complexDocumentType;
89 return $this->documentCategoryId;
94 return $this->documentStatus;
99 $documentService = \CBPRuntime::GetRuntime(
true)->getDocumentService();
104 'Name' => $documentService->getDocumentTypeName($this->complexDocumentType),
108 'Name' => $this->categoryName,
112 'Name' => $this->statusName,
113 'Color' => $this->statusColor,
121 is_array($rawScope[
'DocumentType'] ??
null)
122 && is_array($rawScope[
'Category'] ??
null)
123 && is_array($rawScope[
'Status'] ??
null)
127 $rawScope[
'DocumentType'][
'Type'] ?? [],
128 $rawScope[
'Category'][
'Id'] ??
null,
129 $rawScope[
'Status'][
'Id'] ??
'',
132 $rawScope[
'Category'][
'Name'] ??
null,
133 $rawScope[
'Status'][
'Name'] ??
null
136 if (isset($rawScope[
'Status'][
'Color']) && is_string($rawScope[
'Status'][
'Color']))
138 $scope->setStatusColor($rawScope[
'Status'][
'Color']);
setNames(?string $categoryName, ?string $statusName)
setStatusColor(string $color)
static fromArray(array $rawScope)
__construct(array $documentType, $categoryId, string $status)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)