From dbbe0e226ab3d9e80b0feea4afcceb1c694a6f37 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 21 Jun 2018 12:04:50 -0300 Subject: [PATCH] Inserindo e permitindo o download de anexos --- src/service/WorkflowService.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/service/WorkflowService.php b/src/service/WorkflowService.php index 5843a9f..bdc090d 100644 --- a/src/service/WorkflowService.php +++ b/src/service/WorkflowService.php @@ -12,6 +12,7 @@ class WorkflowService CONST findObservationEndpoint = '/api/public/2.0/workflows/findActiveTasks/'; CONST createProcessObservationEndpoint = '/api/public/2.0/workflows/createProcessObservation'; + CONST StreamEcmFileEndpoint = '/api/public/ecm/document/activedocument/'; public function __construct() @@ -24,6 +25,12 @@ public function findObservations($process){ return $jsonResponse; } + public function getFileEcmDownload($attachmentId){ + $jsonResponse = $this->apiClient->get(self::DownloadFileEndpoint.$attachmentId); + + return $jsonResponse; + } + public function sendProcessObservation(Workflow $workflow){ $data = [ "processInstanceId" => intval($workflow->processInstanceId),