elsa-core/test/unit/Elsa.Workflows.Core.UnitTests
Sipke Schoorstra 4f90cfbbdf
fix: register built-in activation strategy serialization aliases (#8049)
* fix: register built-in activation strategy serialization aliases

3.8 type-resolution hardening no longer falls back to Type.GetType, so
Studio-selected and 3.7-era SQN activation strategy types failed to
deserialize. Register the four built-in strategies with legacy names
and advertise registry aliases from the descriptor endpoint.

Fixes https://github.com/elsa-workflows/elsa-core/issues/8049

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test: DRY activation strategy serialization test setup

Extract shared registry/JSON arrange helpers so activation alias tests
share setup without collapsing their assertions.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test: qualify Options.Create in serialization test helpers

Avoid Elsa.Options colliding with Microsoft.Extensions.Options.Options.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test: keep activation alias setup local and obvious

Drop the shared Testing.Shared helper and extra Runtime wrapper. Those
hid one-line registry construction. Leave same-class helpers only.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* fix: advertise resolvable activation strategy type names

When the registry has no preferred alias, fall back to the simple
assembly-qualified name so Studio stores an identifier the resolver
can load. FullName is not a registered alias.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-11 18:09:51 -07:00
..
Extensions Protect sensitive workflow inputs 2026-06-01 09:15:34 +02:00
Flowchart Update flowchart activity scheduling, implicit join (and FlowJoin/WaitAll) now only waits for followed connections 2025-02-12 23:27:40 -05:00
Models Fix Multitenancy Support and Normalize Tenant ID Handling (#7217) 2026-01-30 19:54:13 +01:00
ObjectConversion fix: restore HashSet-backed Fork completion state on resumed workflows (#7431) 2026-05-02 11:23:17 +02:00
OutputConverters Harden output converter contracts 2026-08-21 22:22:47 +02:00
Serialization fix: register built-in activation strategy serialization aliases (#8049) 2026-09-11 18:09:51 -07:00
Services Preserve StateMachine composite transition continuations 2026-08-31 04:51:34 +02:00
Telemetry Add OpenTelemetry workflow instrumentation (#7514) 2026-05-22 01:17:05 +02:00
Elsa.Workflows.Core.UnitTests.csproj Add code coverage configuration and adjust test projects (#7049) 2025-11-12 13:59:36 +01:00