Skip to content

Preserve manual while-true retry-loop roundtrips #350

@hjotha

Description

@hjotha

Part of #332. Staged in draft PR #346.

Summary

Manual retry-loop style graphs can be described as while true with continue/terminal paths. The current rebuild path can add a fallthrough EndEvent or fail to preserve a loop when only nested bodies contain break/terminal paths.

Expected behavior

describe -> exec -> describe should preserve manual while/retry-loop semantics, including:

  • loop-back flow without an extra fallthrough EndEvent;
  • nested-loop break that belongs to the nested loop, not the outer manual loop;
  • terminal branches inside the loop body;
  • valid MPR output after roundtrip.

Current staging status

The relevant code exists in draft PR #346 but depends on umbrella-only manual loop reconstruction. It should be extracted with that reconstruction rather than as the tiny follow-up alone.

Validation target

Focused PR should include synthetic tests for manual loop preservation and pass make build, make lint-go, and make test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions