Problem/Motivation

Our current project requires models with multiple conditions using the same plugin. The current behaviour of this module disables editing the label for conditions (unlike event and actions). This makes it difficult to understand what a model is doing.

The code that disables the label field on conditions appears to be related to #3302933: Unable to add Submit form event to model and #3303008: Cannot customise the labels of events, conditions or actions. But neither provide an explanation for why disabling the label is required.

I do note that the config schema in the main ECA module does not contain a 'label' entry for conditions, as it does for events and actions.

Proposed resolution

Add a 'label' entry to ECA's config schema, then remove the special-casing that is keeping conditions from acting like event and actions.

Remaining tasks

I already have this working locally. I'll post a sister ticket to ECA (#3409166: Add missing 'label' for conditions in config schema) for the schema change, then open MRs in both projects.

Issue fork eca_cm-3409165

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ergonlogic created an issue. See original summary.

ergonlogic’s picture

Assigned: ergonlogic » Unassigned
Issue summary: View changes
Status: Active » Needs review

I pushed a fix to the MR branch. Note that this requires the fix in #3409166: Add missing 'label' for conditions in config schema in ECA to work.

ergonlogic’s picture

jurgenhaas’s picture

Status: Needs review » Active
Related issues: +#3522747: Add support for modeler API

ECA 3 together with BPMN.iO version 3 and modeler API will support labels for conditions. Whether this modeler will also support them depends upon the question if it will support the modeler API, see #3522747: Add support for modeler API