Skip to content

Workflow DESCRIBE output not directly roundtrippable — missing CREATE keyword #478

@retran

Description

@retran

Summary

DESCRIBE WORKFLOW outputs MDL that starts with workflow Module.Name but the parser requires CREATE WORKFLOW Module.Name. This breaks the describe→drop→recreate roundtrip pattern that works for other document types.

Reproduction

mxcli -c "DESCRIBE WORKFLOW Module.MyWF;" -p app.mpr > wf.mdl
mxcli -c "DROP WORKFLOW Module.MyWF;" -p app.mpr
mxcli -c "execute script 'wf.mdl';" -p app.mpr
# Parse error: extraneous input 'workflow' expecting {CREATE, ...}

Workaround

Manually prefix create before workflow and remove trailing / terminator.

Expected behavior

DESCRIBE output should be directly executable (like entities, microflows, pages, etc.) — either:

  1. Output create workflow ... (preferred, consistent with other types), or
  2. Parser accepts bare workflow ... as CREATE synonym

Version

mxcli v0.7.0-368-g5a109a0e

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