Problem/Motivation

I would like to enable admins to execute workflow transitions for the provided registration workflow. Specifically for using the 'Cancel' transition. I am not able to find a way to expose this functionality.

With other workflows I've used, there are permissions associated with each transition that need to be enabled for users to have access. I believe this often adds a workflow widget to the Views or Forms for a given entity.

Bonus Points would be adding an 'operation' that an admin can use for cancelling a registration. Is there a way this can be accomplished, or a recommended approach? Or do all transitions need to be executed via custom code?

See attached screenshot.

Comments

mbopp created an issue. See original summary.

john.oltman’s picture

This is a great idea but not currently supported directly. You can always use the "Manage Registrations" listing and Edit the registration and change the Status to Canceled there. In order for Cancel to be one of the available states in the Status field you will have to visit the Workflow admin pages in Drupal admin and make sure "Show on Form" is checked for the Cancel status.

john.oltman’s picture

Category: Support request » Feature request
john.oltman’s picture

I added this issue for the Cancel operation:

https://www.drupal.org/project/registration/issues/3321661

This is high on my priority list.

john.oltman’s picture

john.oltman’s picture

Title: Registration Workflow Transition Execution » Add operations for workflow transitions
Assigned: Unassigned » john.oltman
john.oltman’s picture

Operations for workflow transitions will be added soon as noted in the comments for https://www.drupal.org/project/registration/issues/3323529

  • john.oltman committed 8635f1e on 3.0.x
    Issue #3318986: Add operations for workflow transitions.
    
john.oltman’s picture

Status: Active » Fixed
john.oltman’s picture

Enable the new registration_workflow submodule and configure the associated permissions to add this to your site.

john.oltman’s picture

Committed and will be in the next release out this week.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

john.oltman’s picture

Assigned: john.oltman » Unassigned