Skip to content

Commit

Permalink
Inserindo e permitindo o download de anexos
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro committed Jun 21, 2018
1 parent d13eb18 commit dbbe0e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/service/WorkflowService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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),
Expand Down

0 comments on commit dbbe0e2

Please sign in to comment.