Skip to content

CASE (enumeration split): no way to choose which side of the decision each outcome flow leaves from #1587

Open

Description

@GlennCorvers

mxcli 0.26.0. CASE $E WHEN A THEN … WHEN B THEN … WHEN (empty) THEN … END CASE stores the outcome flows' OriginConnectionIndex by WHEN order only: 1st = 0 (top), 2nd = 1 (right), 3rd = 2 (bottom); with 4 or more outcomes 0, 1, 1, …, 2. @position does not change it. @anchor(from: right) before the CASE (and the true:/false: forms) is accepted and ignored; @anchor(A: (from: right)) is refused with MDL092; @anchor(from: …) on the first statement of a WHEN only affects the flow out of that statement.

Studio Pro draws a line by its stored sides, so the flows leave the diamond at the top and bottom and loop around it.

Wanted: a per-outcome form, e.g. WHEN A THEN @anchor(from: right) … or @anchor(A: (from: right), (empty): (from: bottom)) on the CASE, and/or a default that is not WHEN-order based (values right, (empty) bottom).

Repro: create enum M.E (A, B), microflow M.F ($E: M.E) with the CASE above (A, B, (empty), each with a LOG), then mxcli bson dump -t microflow -o M.F and read the OriginConnectionIndex of the three CaseValues flows (0, 1, 2).

Activity

  1. github-actions commented on Oct 19, 2026

    @github-actions

    Issue Triage

    Summary:
    The user reports that mxcli incorrectly assigns OriginConnectionIndex values to CASE outcome flows based solely on WHEN order, causing the generated flows to leave the decision diamond at unintended sides.

    Checklist (bug report)

    Required info Present? Details
    1. mxcli version ✅ mxcli 0.26.0
    2. Mendix version ❌ Not mentioned
    3. Scenario ✅ Creating enum M.E (A,B), microflow with CASE, running mxcli bson dump -t microflow -o M.F
    4. Expected output ✅ Ability to choose flow side per outcome (e.g., per‑WHEN @anchor or CASE‑level mapping) or a default that places (empty) at bottom and others at right
    5. Experienced output ✅ OriginConnectionIndex values are 0 (top), 1 (right), 2 (bottom) for the three outcomes, causing loops; @anchor annotations are ignored or rejected
    6. AI bug report (diag bundle or session log) ❌ Not provided

    Missing information:

    • Mendix version of the project being processed.
    • Output of mxcli diag --bundle (or at least the session log) to help reproduce the issue.

    Could you please add the Mendix version and share the diagnostic bundle or session log? Thanks!


    Automated triage via OpenRouter — workflow source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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