Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When adding new WorkflowStates to a Workflow, you must set the machine_name yourself. This should be done like we are used to from other entities.
Also, when adding a Workflow State with diacritical characters, an error appears.
Comments
Comment #3
johnvThe machine_name is now automatically created in code. but a proper widget is preferrable.
Also a prefix with the workflow_name is needed: now, when adding a new Workflow, the '(creation)' state of older Workflows is removed. :-(
Comment #4
johnvComment #5
johnvFrom several issues, the option to add a machine_name manually, seems to give problems, e.g., when adding a second workflow with a state that already exists. The machine_name must be unique system wide.
Hence, the following patch greyes the machine_name out in the state list.
Comment #8
johnvAbove commit fixes a problem with generation of the machine_name, related to #2658116-5: Validation of unique machine_name of WorkflowState fails
Comment #9
johnvThis is fixed here: #2571093: [D8-port task] The machine_name of WorkflowState needs attention