Follow-up to the workflow-authored status feature (#3611246). Since this issue was filed, two changes reshaped it: the engine lifecycle identifier was renamed from status to state (#3611318), and inline node statuses were replaced by a tenant-scoped status vocabulary plus a stored per-instance status field (#3611370).
An instance now carries two stored, filterable values: the engine state (running, completed, cancelled, failed) and the workflow-authored status (the vocabulary term the current node references). But orchestra_views only auto-exposes each as a raw string column and filter, and there is no status token, only [orchestra:state] and [orchestra:state-label].
Proposed
- Add State and Status Views field handlers that render the human label rather than the raw machine value. The Status field resolves the authored status through the orchestra.instance_status collector and can render a styled tag carrying the author CSS classes.
- Add State and Status Views filter handlers offering labeled option lists. The Status filter lists the status vocabulary terms, limited to the current tenant by default.
- Add
[orchestra:status]and[orchestra:status-label]tokens alongside the existing state tokens. - Wire the labeled State and Status fields into the shipped example views (my_workflow_instances, orchestra_processes, orchestra_completed), and add exposed State and Status filters to my_workflow_instances.
- Documentation, French translations, and kernel test coverage.
Merge request: !348.
Issue fork orchestra-3611306
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 commentedUpdated the title and scope: this now covers labeled State and Status Views fields and filters, plus the [orchestra:status] token, reflecting the state rename (#3611318) and the status vocabulary (#3611370). MR !348 is open against 1.x.
Comment #4
mably commentedComment #6
mably commented