elsa-core/src/modules/Elsa.Workflows.Runtime
Sipke Schoorstra c2fb027c41
Refactor: Overhauls workflow JSON type serialization (#7549)
* Avoid null endpoint DTO metadata in tests

* Enforce console logs hub read permission

* Remove unused console logs hub import

* Support mapped endpoint metadata in auth tests

* Reduce console log capture throughput impact

* Address Copilot console logs review

* Refactor task scheduling to support tenant-level background work and enhance logging functionality.

* Introduce ConsoleStreamHook for stdout/stderr tee and enhance logging validation. Adjust test cases and startup warnings for distributed lock provider usage.

* Refactor console logging pipeline with capture optimization and new ConsoleLogsHost; update tests accordingly.

* Add Ansi SGR parser for console logs and associated unit tests

* Remove ANSI color renderings and parsers; integrate ConsoleLogScopeAccessor for improved logging context with workflow instance ID support.

* Address console logs code quality feedback

* Address PR review feedback

* Preserve console logs extension points

* Stabilize console logs host lifecycle

* Address final automated review comments

* Tighten console log capture shutdown

* Address console log review feedback

* Address follow-up review feedback

* Cover final review feedback

* Avoid recursive console provider initialization

* Guard console host lease shutdown

* Preserve console log scope and provider lifetime

* Correlate console log scope fallback

* Tighten console scope correlation

* Expose host services during provider construction

* Redact ANSI-normalized console lines

* Remove `ConsoleCaptureTee` and related services and tests

* Use pipeline contributors for console log context

* Update CShells package versions to 0.0.24-preview.132

* Filter live console logs by workflow instance

* Enhance console logging with activity execution metadata and extend test coverage.

* Address console logs stream consumption comment

* Add diagnostics OpenTelemetry backend

* Introduce dedicated workflow JSON type registry and hardening

This change addresses GitHub issue #7541 by establishing a separate type registry (`IWorkflowJsonTypeRegistry`) for workflow JSON serialization. This decouples workflow type resolution from expression type aliases, enforcing a strict trust boundary.

Key aspects:
- New workflow JSON emits preferred aliases for registered types.
- Existing persisted workflows can be loaded via registered legacy names.
- Unknown, abstract, interface, open generic, or inappropriate collection types are rejected during deserialization, enhancing security.
- Public APIs (e.g., incident strategies) now expose consistent workflow JSON type identifiers.

This ensures secure, predictable, and backward-compatible handling of types within workflow definitions and payloads.

* Remove unused project references and streamline console log endpoint

* Move serialization type aliases to Elsa.Common

* Update serialization integration fixtures for aliases

* Stabilize missing rate limiter policy test
2026-05-31 11:09:39 +02:00
..
ActivationValidators
Activities Fix BulkDispatchWorkflows sharing input dictionary across dispatches (#7284) 2026-04-15 14:20:44 +02:00
Bookmarks Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
Commands Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Comparers Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Constants
Contexts
Contracts Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Discovery [codex] Fix console log metadata and type resolution (#7542) 2026-05-30 22:52:01 +02:00
Entities Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Enums Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Exceptions Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Extensions Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Features Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
Filters Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Handlers Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
HealthChecks Address health check review feedback 2026-05-21 02:13:19 +02:00
HostedServices Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
IngressSources Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Lifecycle Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
LogPersistence Refactor activity execution record capturing (#6836) 2025-08-04 08:44:42 +02:00
Matches Incremental work on restoring previous workflow runtime API surface for backward compatibility 2025-01-28 00:11:25 +01:00
Messages Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
Middleware Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Models Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Notifications Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
OptionConfigurators Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Options Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
OrderDefinitions Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Parameters Deprecate and clean up legacy workflow runtime components. 2025-01-28 09:26:46 +01:00
Params Deprecate and clean up legacy workflow runtime components. 2025-01-28 09:26:46 +01:00
Providers [codex] Harden workflow JSON type resolution (#7499) 2026-05-22 15:25:49 +02:00
Requests Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Responses Distributed locks to prevent multiple pods executing Reload and Refresh (#7311) 2026-02-23 20:56:15 +01:00
Results Merge branch 'refs/heads/main' into blueberry 2025-03-10 15:13:26 +02:00
Services Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
ShellFeatures Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
StartupTasks Graceful shutdown for the workflow runtime (drain, pause, recover) (#7424) 2026-05-02 19:27:08 +02:00
Stimuli ExecuteWorkflow Activity: Add Wait For Completion option (#6153) 2024-11-26 20:37:41 +01:00
Stores Add bookmark queue dead-letter store (#7516) 2026-05-21 23:43:36 +02:00
Tasks Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
UIHints
AssemblyInfo.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
Elsa.Workflows.Runtime.csproj Add Elsa runtime readiness health checks 2026-05-20 13:34:25 +02:00
Elsa.Workflows.Runtime.csproj.DotSettings Fixed Log Persistence Mode Evaluation For Activity Execution (#6595) 2025-04-17 18:03:06 +02:00
FodyWeavers.xml
RuntimeStimulusNames.cs Support for Writing Custom Trigger Activities Using Existing Trigger Infrastructure (#6527) 2025-03-21 23:16:56 +01:00
WorkflowRuntimeTypeAliasRegistrar.cs Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00