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

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

Title: Add a "Status" Views field exposing the workflow-authored instance status » Add labeled State and Status Views fields and filters, and an [orchestra:status] token
Issue summary: View changes

Updated 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.

mably’s picture

Status: Active » Needs review

  • mably committed 7d88203d on 1.x
    feat: #3611306 Add labeled State and Status Views fields and filters,...
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.