From c4249fd12afde2c63a70392bcbfc837b9ade30aa Mon Sep 17 00:00:00 2001 From: sanja <52755494+sanjacornelius@users.noreply.github.com> Date: Wed, 8 Apr 2026 17:33:10 -0700 Subject: [PATCH] Add SMART_EXTRACT vars to microservice runner Populate SMART_EXTRACT_API_HOST and SMART_EXTRACT_REQUEST_TIMEOUT in the runner's variablesParameter from config('smart-extract.*'). This exposes the Smart Extract API host and request timeout settings to scripts executed by the microservice runner so they can call the Smart Extract service with the correct endpoint and timeout. --- ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php b/ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php index 030abd8f1b..7e243c104e 100644 --- a/ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php +++ b/ProcessMaker/ScriptRunners/ScriptMicroserviceRunner.php @@ -136,6 +136,8 @@ private function getEnvironmentVariables(User $user) $variablesParameter['API_HOST'] = config('app.docker_host_url') . '/api/1.0'; $variablesParameter['APP_URL'] = config('app.docker_host_url'); $variablesParameter['API_SSL_VERIFY'] = (config('app.api_ssl_verify') ? '1' : '0'); + $variablesParameter['SMART_EXTRACT_API_HOST'] = config('smart-extract.api_host'); + $variablesParameter['SMART_EXTRACT_REQUEST_TIMEOUT'] = config('smart-extract.request_timeout'); } return $variablesParameter;