Skip to content

[EPIC] CD: Workflow Actions #33999

Closed
9 of 9 issues completed
Closed

Description

@MariaFernandez778

Description

Content Drive needs to expose the same workflow capabilities editors rely on elsewhere in the product: the default actions (publish, unpublish, archive, delete…) and the actions defined by each content type's workflow schemes. Today those are only partly reachable, so a user browsing Content Drive has to leave it to move content through a workflow.

Workflow actions surface in three contexts, and they have meaningfully different requirements:

Context Trigger What shows Source
Single item Right click a row, or the row's ... menu Default + workflow actions applicable to that item, in that order GET /api/v1/workflow/contentlet/{inode}/actions?renderMode=LISTING
Selection (1 item) Command bar, driven by the selection Default actions as secondary buttons; overflow into a "more" menu when they don't fit selection state + system-action mappings
Selection (2+ items) Command bar → Action Center dialog Quick Actions plus workflow actions grouped by scheme, each with a count of how many selected items it applies to POST /api/v1/workflow/contentlet/actions/bulk

The multi-select case is where this stops being a presentation problem. Counts matter, because an action rarely applies to the whole selection, and a flat button cannot express "this applies to 2 of your 5 items". That is why 2+ items opens a dialog rather than adding more buttons.

Original framing, preserved: the command bar should show as primary buttons only actions that apply to the whole view (namely NEW). Everything else is tied to the selection and shown as secondary buttons — default actions first, then workflow actions — with an overflow "more" menu when they don't fit. Right-clicking a row, or using its ... button, shows only the actions applicable to that item, in the same order. This should land before first launch.

Current state

  • ✅ Per-row menu — implemented. Fetches dynamic per-scheme workflow actions via getByInode(…, LISTING) and renders them alongside edit, permissions, lock/unlock and Add to Bundle.
  • ⚠️ Command bar (selection) — partially implemented. Shows a hardcoded set of system actions gated by selection state; does not yet show the dynamic per-scheme workflow actions the epic asks for, and has no overflow menu.
  • ❌ Multi-select bulk — not implemented. Tracked by the child issues below.

Constraints that shape the design

These are properties of the workflow engine, not implementation choices, and they should be treated as fixed inputs:

  1. A contentlet occupies exactly one workflow step at a time. workflow_task carries UNIQUE (webasset, language_id) and its status column holds a single step id. So a contentlet belongs to one scheme at a time, per-scheme counts in the UI partition the selection rather than overlapping, and a mixed selection will partially skip when an action is fired.
  2. Firing one action invalidates the others. The action moves the contentlet to its next step, so any other action's precondition and count go stale immediately. This is why execution is one action at a time until the spike says otherwise.
  3. Counts can be an upper bound. The backend does not evaluate an action's Velocity condition when aggregating counts, and flags this as conditionPresent. The UI has to be honest about that rather than promising an exact number.
  4. Some actions cannot be fired unattended. Push publish, move-with-path, and assign/comment actions need extra input before they can run.

Scope

Child Type
#36817 — Action Center: bulk workflow actions, one action per execution Task
#36818 — Spike: running multiple workflow actions in one execution Spike
#36819 — Preview the items a workflow action will run on Task
#36894 — Per-item execution results, and enrich _bulkfire to support them Task
#36844 — Bulk Lock and Unlock quick actions Task
#36845 — Refresh quick action that reindexes the selection Task

Also in scope, not yet ticketed:

  • Dynamic per-scheme workflow actions in the command bar for a single-item selection, plus the overflow "more" menu
  • Add to Bundle over a selection — reachable today only through the legacy RemotePublishAjaxAction servlet, not a REST endpoint

Backend gaps shared by several children. There is no bulk REST endpoint for lock/unlock, reindex, or add-to-bundle — in each case a single-item endpoint exists and legacy loops server-side through a Struts command. And no endpoint returns which items an action applies to, only counts — #36819 works around that by grouping the selection per content type, which is exact at scheme level but cannot account for an item's step position or a Velocity condition. #36844 and #36845 each carry the decision between a client-side loop and a new endpoint; if endpoints are added they should be designed together so they share one request/response shape rather than three.

The SSE fire endpoint also drops information it already holds — the failure reason, which item succeeded, and skipped items — which is what blocks a results view. #36894 covers enriching it.

Naming: the dialog is presented to users as Workflow Center, while the code and i18n keys keep the action-center prefix. Some child issue titles still say "Action Center".

Desired Outcome

A content editor can move content through its workflow without leaving Content Drive.

Concretely, we would consider this landed when:

  • Workflow actions defined by a content type's schemes are reachable from Content Drive for a single item and for a multi-item selection — not just the built-in defaults
  • For a multi-item selection, the user can see how many of the selected items each action actually applies to before running it
  • Executing an action over a selection reports what succeeded, what was skipped, and why, rather than failing silently or reporting only a total
  • The experience holds on Community, where System Workflow is the only scheme that can exist
  • Editors stop bouncing to the legacy content-search portlet to perform bulk workflow operations

Target Personas

  • Developer teams
  • Content teams
  • DevOps teams
  • System administrators (dotCMS)

Links

  • Design prototype: Content Drive remix — ActionCenterDialog.tsx
  • Reference implementation (legacy, same endpoints): dotCMS/src/main/webapp/html/portlet/ext/contentlet/view_bulk_actions_inc.jsp
  • Key backend: WorkflowHelper.findBulkActions, WorkflowAPIImpl.distributeWorkAndProcess, WorkflowActionUtils.filterBulkActions

Sub-issues

Sub-issues

9 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. github-actions commented on Mar 4, 2026

    @github-actions
    Contributor

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  2. moved this from New to Current Sprint Backlog in dotCMS - Product Planningon Jul 30, 2026
  3. 5 remaining items

  4. github-actions commented on Nov 23, 2026

    @github-actions
    Contributor

    Documentation Assessment: [EPIC] CD: Workflow Actions (#33999)

    action: none

    Determination

    No documentation action is needed. The public-facing capabilities this Epic delivers are already documented, accurately and at the right level of detail, in the existing Content Drive documentation set.

    What the Epic Delivered

    This Epic shipped the Workflow Center (internally "Action Center") in Content Drive — the ability to run workflow and quick actions on a multi-item selection instead of one item at a time. Across its nine sub-issues and associated PRs, the concrete end-user surface is:

    • A Workflow Center dialog, opened from the toolbar once more than one item is selected, with two sections: Quick Actions (Lock, Unlock, Add to Bundle, Push Publish, Refresh) and Workflow Actions grouped by scheme, each showing how many selected items the action applies to.
    • A preview step before executing: a checkable table of the items an action will run on, so items can be dropped before firing.
    • A configuration step for actions that need more input first — a destination folder for Move, a bundle for Add to Bundle, environment/date settings for Push Publish, and an assignee/comment for Assign/Comment actions.
    • Outcome reporting after execution (succeeded / skipped / failed), with the grid refreshing and the selection clearing.
    • Two new bulk folder operations reachable from the same multi-select: Duplicate (creates an in-place copy, suffixed _copy) and Delete (removes the folder and its contents, non-reversible), both running as background jobs.
    • Role and configuration gates on specific quick actions: Push Publish requires at least one push-publishing environment reachable by the user's role; Refresh requires the CMS Administrator role (confirmed against BulkRefreshHelper.canRefresh in the current codebase — the CMS Power User role key has no starter-data role to resolve to, so the gate is Administrator-only in practice).

    Existing Documentation Coverage

    A dedicated page, Bulk Actions in Content Drive, was last modified 2026-10-30 — after the Epic's final merged PR (2026-09-30) — and already covers this delivery:

    • Item-level actions (Edit, Lock/Unlock, Push Publish, Add to Bundle) and the row-level Workflows menu.
    • Selecting items (checkboxes, header checkbox, Shift-click, Esc).
    • The full Workflow Center flow: choosing an action, seeing the per-action eligible count, the Quick Actions / Workflow Actions grouping, the preview-and-uncheck step, and actions that first ask for details (Move's destination, Add to Bundle's bundle picker).
    • The outcome message ("a message reports how many succeeded. Items an action doesn't apply to are skipped") and the role/configuration notes for Push Publish and Refresh, called out in an info box.
    • Folder actions, including Duplicate (named and described correctly, including the _copy suffix and background creation) and Delete Folder, plus the sentence confirming both can be run in bulk from Workflow Center.

    The companion pages Content Drive and Moving to Content Drive cross-link correctly and describe the equivalent legacy paths ("Select items in Content Search, then Available Workflow Actions" → "Workflow Center"), which matches how this Epic's PRs explicitly modeled the feature as parity with the legacy bulk-actions screen.

    I ran several documentation searches (Content Drive, Workflow Center, bulk actions, Power User role, Push Publishing environments, bundles, lock/unlock) and found no gap between what shipped and what is documented. The documentation is written at the correct level for end users — covering what the feature does and how to use it — without carrying over the internal implementation detail (job queues, SSE vs. polling, per-scheme eligibility aggregation, etc.) that filled most of the Epic's sub-issues and PRs; that detail is appropriately internal and not something customers need.

    No sub-issue in this Epic carried a Doc: Needs Doc, Changelog: Needs Doc, or Type: Documentation label, which is consistent with the documentation team evidently having picked this work up proactively and already closed the gap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions