Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
workflowstate.php
1<?php
2
4
5use Bitrix\Bizproc\Workflow\Entity\EO_WorkflowState;
6
7class WorkflowState extends EO_WorkflowState
8{
9 public function getComplexDocumentId(): array
10 {
11 return [$this->getModuleId(), $this->getEntity(), $this->getDocumentId()];
12 }
13
14 public function getStateInfo(): array
15 {
16 return [
17 'STATE' => $this->getState(),
18 'TITLE' => $this->getStateTitle(),
19 'PARAMETERS' => $this->getStateParameters(),
20 ];
21 }
22
23 public function getTasksInfo(): array
24 {
25 $info = [];
26
27 $tasks = $this->getTasks();
28 if ($tasks)
29 {
30 foreach ($this->getTasks() as $task)
31 {
32 $info[$task->getId()] = $task->getValues();
33 }
34 }
35
36 return $info;
37 }
38}