Commit 154045f
fix #590: rewrite Level 9.1 call-external-action to use TripPin schema
The original Level 9.1 created a microflow `OdTest.ACT_CallExternalAction`
that called `OdTest.SalesforceAPI.GetAccounts(...)` and
`OdTest.SalesforceAPI.NotifyUpdate(...)`. SalesforceAPI's MetadataUrl is a
placeholder that doesn't return $metadata, so the ConsumedODataService BSON
is written with an empty `Metadata` cache. Studio Pro's project checker
then resolves the Name fields against an empty schema, gets null, and the
checker aborts with a NullReferenceException in
`Mendix.Modeler.Integration.CallExternalAction.get_SchemaAction()` →
`ExternalActionParameterMapping.get_SchemaParameter()`. The crash blocks
all in-IDE error reporting, not just for this microflow.
Move the microflow definition to a new Level 10.4.1, right after the
TripPin client is created (Level 10.1) and its $metadata is actually
cached. Use unbound TripPin entries `GetNearestAirport` (Function with
lat/lon parameters and a Trippin.Airport return) and `ResetDataSource`
(parameterless Action) so both the parameter-mapping and the
`on error continue` variants are still demonstrated.
The microflow stays in `OdTest` so `show external actions in OdTest`
(Level 9.2) still returns a row. The existing drop in Level 8.8a already
runs before Level 8.8c (TripPin client drop), so cleanup order is correct.
Issue #590 separately documents the upstream Studio Pro robustness gap
(`SchemaAction` should null-check instead of NREing) so it can be
escalated to Mendix support.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4f0293f commit 154045f
1 file changed
Lines changed: 29 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
391 | 390 | | |
392 | 391 | | |
393 | 392 | | |
| |||
462 | 461 | | |
463 | 462 | | |
464 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
465 | 480 | | |
466 | 481 | | |
467 | 482 | | |
468 | 483 | | |
469 | 484 | | |
470 | | - | |
471 | | - | |
472 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
473 | 489 | | |
474 | 490 | | |
475 | 491 | | |
| |||
0 commit comments