Skip to content

FOUR-29250 End Event – External URL with Mustache Support#8728

Open
gproly wants to merge 8 commits intodevelopfrom
feature/FOUR-29250
Open

FOUR-29250 End Event – External URL with Mustache Support#8728
gproly wants to merge 8 commits intodevelopfrom
feature/FOUR-29250

Conversation

@gproly
Copy link
Contributor

@gproly gproly commented Feb 10, 2026

Description:
feat(end event): support Mustache in external URL for element destination

  • Resolve Mustache expressions in end event "External URL" when the token reaches the end event, using the same context as scripts/screens (APP_URL, _request, _user, process variables).
  • Add getElementDestinationMustacheContext() to build context via DataManager with fallback; normalize to plain array for Mustache.
  • Add resolveElementDestinationUrl() to decode HTML entities and render URL template with MustacheExpressionEvaluator. FEEL is not supported.
  • Apply resolution only for externalURL type; conditional redirect URLs also go through Mustache when destination is external URL.
  • Harden getElementDestinationAttribute(): ensure conditionalRedirectProp and elementDestinationProp are never null (json_decode ?? [], pass ?? []).
  • Modeler: allow URL validation when string contains {{ (Mustache); update helper and error copy to document _request.id, _user.id, process vars.

ci:deploy
ci:modeler:feature/FOUR-29250

Related tickets:
https://processmaker.atlassian.net/browse/FOUR-29250

..

Description:
feat(end event): support Mustache in external URL for element destination

- Resolve Mustache expressions in end event "External URL" when the token
  reaches the end event, using the same context as scripts/screens
  (APP_URL, _request, _user, process variables).
- Add getElementDestinationMustacheContext() to build context via DataManager
  with fallback; normalize to plain array for Mustache.
- Add resolveElementDestinationUrl() to decode HTML entities and render
  URL template with MustacheExpressionEvaluator. FEEL is not supported.
- Apply resolution only for externalURL type; conditional redirect URLs
  also go through Mustache when destination is external URL.
- Harden getElementDestinationAttribute(): ensure conditionalRedirectProp
  and elementDestinationProp are never null (json_decode ?? [], pass ?? []).
- Modeler: allow URL validation when string contains {{ (Mustache); update
  helper and error copy to document _request.id, _user.id, process vars.
Related tickets:
https://processmaker.atlassian.net/browse/FOUR-29250
@vladyrichter
Copy link

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

gproly and others added 3 commits February 11, 2026 15:56
Co-authored-by: Miguel Angel <miguelangellodev@gmail.com>
Co-authored-by: Miguel Angel <miguelangellodev@gmail.com>
Co-authored-by: Miguel Angel <miguelangellodev@gmail.com>
@vladyrichter
Copy link

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

…Context

- Log warning when falling back from DataManager to request data
- Use auth()->user() instead of Auth facade
- Use JSON_THROW_ON_ERROR for context normalization
@vladyrichter
Copy link

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

… Mustache helpers

Cover getElementDestinationMustacheContext (normalized context, no remember_token, token without user) and resolveElementDestinationUrl (_user placeholders, empty string, no placeholders).
@processmaker-sonarqube
Copy link

@Kookster310
Copy link
Contributor

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

@pmPaulis pmPaulis changed the title FOUR-29250 End Event – External URL with Mustache/FEEL Support FOUR-29250 End Event – External URL with Mustache Support Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants