Skip to content

Commit 0754dd3

Browse files
Add SMART_EXTRACT env vars to ScriptRunners for Custom Executors
Append SMART_EXTRACT_API_HOST and SMART_EXTRACT_REQUEST_TIMEOUT to the variablesParameter in ProcessMaker/ScriptRunners/Base.php. The change injects smart-extract.api_host and smart-extract.request_timeout from configuration so script runners receive the Smart Extract service host and request timeout values at runtime.
1 parent 1d2cc90 commit 0754dd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ProcessMaker/ScriptRunners/Base.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ private function getEnvironmentVariables($useEscape = true)
192192
$variablesParameter[] = 'HOST_URL=' . config('app.docker_host_url');
193193
}
194194

195+
$variablesParameter[] = 'SMART_EXTRACT_API_HOST=' . config('smart-extract.api_host');
196+
$variablesParameter[] = 'SMART_EXTRACT_REQUEST_TIMEOUT=' . config('smart-extract.request_timeout');
197+
195198
return $variablesParameter;
196199
}
197200

0 commit comments

Comments
 (0)