Workflow flow conditions already resolve nested variable paths, e.g. validation.result where validation is a {result, comment} array. The [orchestra:var:NAME] token does not: [orchestra:var:validation.comment] looks for a literal top-level key validation.comment, finds none, and clears; [orchestra:var:validation] dumps the whole array as JSON.

Make the token consistent with flow conditions: when the flat key is absent, resolve the name as a dot-path into the (branch-visible) variables (NestedArray::getValue() over explode('.', $name)). So [orchestra:var:validation.comment] returns just the comment.

Benefits any template or message that references a nested result variable (for example an Easy Email or Orchestra Mail body printing a validator's rejection comment). Scalar leaves render as before; a non-scalar leaf still falls back to JSON.

Issue fork orchestra-3607623

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

  • mably committed 88d7ca73 on 1.x
    feat: #3607623 [orchestra:var:NAME] should resolve nested variable paths...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.