Problem/Motivation
The instance view's process trace lists each token of a run with an operations dropbutton (the signal actions and the fire-timer action). When a step parks on an external interaction (a payment page, a message, a redirect), an operator has no way to reach that interaction page from the trace: to preview it, or to copy its link and resend it, they must wait for the notification that normally delivers it.
Proposed resolution
Add a generic alter hook, hook_orchestra_ui_token_operations_alter(array &$links, TokenInterface $token), that lets any module add its own per-token operations to the trace. orchestra_interaction implements it: for a parked token whose node declares an interaction, it prepends an "Open" link to the visitor's step page, carrying the per-step capability token. The link is offered only on the admin-gated instance view.
To build that link as a render element, InteractionUrlsInterface gains stepLink(), returning a Url object for the same target as stepUrlForToken() (which now delegates to it); the capability and assignment gateways implement it too.
Remaining tasks
- Review.
Issue fork orchestra-3609113
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
Comment #3
mably commentedOpened MR !299 with the "Open" interaction link and a kernel test. Setting to Needs review.
Comment #5
mably commented