Skip to content

Add support for SMART_EXTRACT env variables in ScriptMicroserviceRunner#8772

Merged
nolanpro merged 1 commit into
developfrom
bugfix/FOUR-30560
May 6, 2026
Merged

Add support for SMART_EXTRACT env variables in ScriptMicroserviceRunner#8772
nolanpro merged 1 commit into
developfrom
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

@CarliPinell CarliPinell requested a review from eiresendez April 13, 2026 15:04
Copy link
Copy Markdown
Contributor

@eiresendez eiresendez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested manually it works perfectly for Smart Extract. cc @CarliPinell

@nolanpro nolanpro merged commit a0ec004 into develop May 6, 2026
14 of 18 checks passed
@nolanpro nolanpro deleted the bugfix/FOUR-30560 branch May 6, 2026 20:52
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.

5 participants