Add Workflow to any field, property

Created on 9 February 2014, over 11 years ago
Updated 9 September 2025, 23 days ago

Updated: Comment #N

Problem/Motivation

To be able to use Workflow, you need to create a new Field of type Workflow, and attach it to an entity.
It would be nice to be able to add a workflow to an already available property or (list) field.

See the following modules for inspiration:
List Transitions to add transitions to list fields
State Transition Control to add transitions to list fields
Entity property field to turn any property into a field.

Proposed resolution

Use some technique to attach Workflow to an existing field/property. Then, use those values to build a workflow state machine.
If the user views/changes an entity, the normal options are filtered by Workflow.

Remaining tasks

..

User interface changes

- Add an indicator "use this field/property in Workflow XYZ" (in Workflow or Workflow Field or in field/property)

API changes

- "workflow_get_attached_field" returns the field that contains possible values;
- "Get available states" need to call the generic read_options function to fetch them;
- "Get available states" need to filter the allowed new states, and present them to the user;

Feature request
Status

Closed: won't fix

Version

1.0

Component

Miscellaneous

Created by

🇳🇱Netherlands johnv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024