Problem/Motivation

Every valid workflow needs exactly one start node, but a brand-new workflow opens with an empty canvas, so the author must manually add the start node before doing anything else. That first step is pure boilerplate.

In #3607005 the add-node control was changed to offer and allow the start type only while no start node exists yet, and validation now refuses a second start. That correctly closed the duplicate-start bug, but it left creating the first start as a manual step.

Proposed resolution

  • Seed a single start node automatically when a new workflow is created, in both authoring paths: the orchestra_cm form new-model path, and the BPMN.io modeler new-model creation, keeping the two in parity.
  • Once a start always exists, simplify the add-node control back to an unconditional exclusion of the start type.
  • Update the authoring tests (OrchestraCmAuthoringTest, OrchestraCmFeatureAuthoringTest) to expect the pre-seeded start instead of adding it.

Remaining tasks

  • Implement start-node seeding on new-workflow create.
  • Make the orchestra_cm form and the BPMN.io modeler behave identically.
  • Simplify the add-node control and its validation.
  • Update and run the authoring tests.

User interface changes

A newly created workflow opens with a start node already present.

Issue fork orchestra-3607015

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

mably created an issue. See original summary.

mably’s picture

Status: Active » Postponed

mably’s picture

Status: Postponed » Needs review
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Needs review
  • mably committed 1163326b on 1.x
    feat: #3607015 Seed a start node when a new workflow is created
    
    By:...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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