Should WorkflowItem reference to ListItem, ListString or EntityReference?

Created on 8 June 2025, 6 days ago

Problem/Motivation

WorkflowItem currently refers to ListItemBase.
There are better options:
- ListStringItem subclasses ListItemBase, and refers to a string, which is the key of a State/Transition.
- EntityReferenceItem refers to an entity, enabling setting either ID or Entity. Problem is that module wants to store Transition, but the key refers to State.

Steps to reproduce

Proposed resolution

Change WorkflowItem first to ListStringItem, then to EntityReferenceItem.
Introduce the Attribute #[FieldType()]

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024