Skip to content

Microflow call parameter mappings can be written with invalid BSON field order #341

@hjotha

Description

@hjotha

Summary

Some microflow call activities can roundtrip textually but become invalid after mxcli exec. Studio Pro reports CE0117 expression errors on the call activity even though the MDL source is unchanged.

Expected behavior

Serializing a MicroflowCallAction should preserve the BSON field order Studio Pro expects for:

  • the top-level MicroflowCallAction
  • the nested MicroflowCall
  • each MicroflowCallParameterMapping

Actual behavior

The writer emits result-variable fields before the nested call, QueueSettings before parameter mappings, and mapping fields as Parameter before Argument. This can produce a model that loads but fails validation with an expression error on the call activity.

Proposed fix

Emit the call payload in the same stable order as Studio Pro writes it: nested MicroflowCall before result fields, ParameterMappings before QueueSettings, and mapping Argument before Parameter.

Related

Part of the broader microflow roundtrip validity tracker #332.

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