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.
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
MicroflowCallActionshould preserve the BSON field order Studio Pro expects for:MicroflowCallActionMicroflowCallMicroflowCallParameterMappingActual behavior
The writer emits result-variable fields before the nested call,
QueueSettingsbefore parameter mappings, and mapping fields asParameterbeforeArgument. 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
MicroflowCallbefore result fields,ParameterMappingsbeforeQueueSettings, and mappingArgumentbeforeParameter.Related
Part of the broader microflow roundtrip validity tracker #332.