Skip to content

Commit d2bc1e2

Browse files
authored
Merge pull request #8620 from ProcessMaker/subtask/FOUR-27111
FOUR-27111 | Implement Backend Logic to Call API → Submit Document for Extraction
2 parents 036adf8 + 34840d3 commit d2bc1e2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ private function getEnvironmentVariables(User $user)
136136
$variablesParameter['API_HOST'] = config('app.docker_host_url') . '/api/1.0';
137137
$variablesParameter['APP_URL'] = config('app.docker_host_url');
138138
$variablesParameter['API_SSL_VERIFY'] = (config('app.api_ssl_verify') ? '1' : '0');
139+
$variablesParameter['SMART_EXTRACT_API_HOST'] = config('app.smart_extract_api_host');
140+
$variablesParameter['SMART_EXTRACT_PM_API_TOKEN'] = config('app.smart_extract_api_token');
139141
}
140142

141143
return $variablesParameter;

config/app.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,7 @@
298298
'multitenancy' => env('MULTITENANCY', false),
299299

300300
'resources_core_path' => base_path('resources-core'),
301+
302+
'smart_extract_api_host' => env('SMART_EXTRACT_API_HOST', 'extract-api.processmaker.net'),
303+
'smart_extract_api_token' => env('SMART_EXTRACT_PM_API_TOKEN', ''),
301304
];

0 commit comments

Comments
 (0)