Skip to content

Add support for SMART_EXTRACT env variables in ScriptMicroserviceRunner#8772

Open
sanjacornelius wants to merge 1 commit intodevelopfrom
bugfix/FOUR-30560
Open

Add support for SMART_EXTRACT env variables in ScriptMicroserviceRunner#8772
sanjacornelius wants to merge 1 commit intodevelopfrom
bugfix/FOUR-30560

Conversation

@sanjacornelius
Copy link
Copy Markdown
Contributor

@sanjacornelius sanjacornelius commented Apr 9, 2026

Issue & Reproduction Steps

This PR updates ScriptMicroserviceRunner.php to include the SMART_EXTRACT_API_HOST and SMART_EXTRACT_REQUEST_TIMEOUT environment variable in the list of accessible variables for the Scripts microservice.

Previously, only a limited set of environment variables were available by default, which caused getenv('SMART_EXTRACT_API_HOST') to return null. With this change, the Smart Extract package can now correctly retrieve the host value using getenv().

Related Tickets & Packages

ci:deploy

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

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-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@Kookster310
Copy link
Copy Markdown
Contributor

QA server K8S was successfully deployed https://ci-f784bba593.engk8s.processmaker.net

@sanjacornelius sanjacornelius changed the title Add support for SMART_EXTRACT env varibales in ScriptMicroserviceRunner Add support for SMART_EXTRACT env variables in ScriptMicroserviceRunner Apr 9, 2026
@Kookster310
Copy link
Copy Markdown
Contributor

QA server K8S was successfully deployed https://ci-f784bba593.engk8s.processmaker.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants