75 return $workflowStateService->getExecutionTime(
77 workflowId: $this->workflow->getId(),
78 workflowStarted: $this->workflow->getStarted(),
79 workflowModified: $this->workflow->getModified(),
81 )->getRoundedExecutionTime();
127 $documentService = \CBPRuntime::getRuntime()->getDocumentService();
128 $complexDocumentId = $this->workflow->getComplexDocumentId();
131 $complexDocumentType = $documentService->getDocumentType($complexDocumentId);
135 $complexDocumentType =
null;
139 isset($complexDocumentType)
140 ? $documentService->getDocumentTypeCaption($complexDocumentType)
144 $documentUrl = $documentService->getDocumentDetailUrl($complexDocumentId);
147 'documentId' => $complexDocumentId,
148 'documentType' => $complexDocumentType,
149 'moduleName' => $this->getModuleName($complexDocumentId[0] ??
''),
150 'entityName' => $entityName ??
'',
151 'documentUrl' => empty($documentUrl) ? null : $documentUrl,
152 'documentName' => $documentService->getDocumentName($complexDocumentId) ??
'',
153 'isWorkflowRunning' => $this->isWorkflowRunning(),
156 'workflowModifiedDate' => $this->workflow->getModified()->getTimestamp(),
157 'started' => $this->workflow->getStarted()?->getTimestamp(),
158 'startedBy' => $this->workflow->getStartedBy(),