Skip to content

[4.0] [RFC] [Workflow] About re-adding (multi-record) buttons to toolbar based on available workflow transitions #21708

@ggppdk

Description

@ggppdk

How (multi-record) buttons according to transitions of current workflow like
"Publish"
"Unpublish"
"Trash"
"Needs updating"
"Some transition name 1"
"Some transition name 2"

can be re-added to the toolbar ?

please see a comment here:
#21247 (comment)

@bembelimen

..., perhaps we could implement a in some way "intelligent" dropdown button, which offers transitions depending on the selected articles...

as an idea it seems good, but lets think of it

it would be a little complex,
i mean,
we do not have such a thing for components that do not implement workflow,
where things are simpler,
and instead we use a general check on component-level ACL to decide showing the buttons

but let's say that by some extra work it is done

and then i want to set 7 items to "Trash" stage,
i select them, but the "Trash" button does not appear,
why it does not appear ?
because 1 out of the 7 does not allow be to set it to "Trash" (for whatever reason either due to ACL or due to its current stage),
do i have to start searching to find it ?, i will think it is a bug that the button is not showing, and i would be frustrated and confused

Maybe it should be just
-- 1 configuration option at every transition configuration
"Add transition as a toolbar button"

And then also for both workflow and non-workflow extensions do this
the "transition execute" task or the "change state task"
must have some intelligence and some more feedback

  1. skip records not possible to change
  2. Feedback that on page reload the lines (records) that could not be changed are marked

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions