DESCRIBE outputs LOOP $ItrLoad IN $LoadList with no BEGIN ... END LOOP; body. The activities inside the LoopedActivity container in the Mendix model are simply not serialized. This is confirmed by the catalog showing a LoopedActivity entry with 118 total activities, but the MDL output only accounts for ~70 of them outside the loop.
The fix needed in mxcli:
DESCRIBE MICROFLOW needs to recursively serialize the contents of LoopedActivity nodes, outputting them as:
LOOP $ItrLoad IN $LoadList
BEGIN
-- activities inside the loop body
CALL MICROFLOW TransFloConnector.SUB_POST_Batch_NewLoad(...);
...
END LOOP;
Once that works, the full microflow can be safely read → modified → written back without data loss.
Secondary issue (also needed):
The SHOW CALLEES OF command also misses calls made from within loop bodies — likely because it reads from the same incomplete serialization path.
DESCRIBE outputs LOOP $ItrLoad IN $LoadList with no BEGIN ... END LOOP; body. The activities inside the LoopedActivity container in the Mendix model are simply not serialized. This is confirmed by the catalog showing a LoopedActivity entry with 118 total activities, but the MDL output only accounts for ~70 of them outside the loop.
The fix needed in mxcli:
DESCRIBE MICROFLOW needs to recursively serialize the contents of LoopedActivity nodes, outputting them as:
LOOP $ItrLoad IN $LoadList
BEGIN
-- activities inside the loop body
CALL MICROFLOW TransFloConnector.SUB_POST_Batch_NewLoad(...);
...
END LOOP;
Once that works, the full microflow can be safely read → modified → written back without data loss.
Secondary issue (also needed):
The SHOW CALLEES OF command also misses calls made from within loop bodies — likely because it reads from the same incomplete serialization path.