elsa-core/src/modules/Elsa.Workflows.Core/Activities
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
..
Flowchart Refactor: Overhauls workflow JSON type serialization (#7549) 2026-05-31 11:09:39 +02:00
StateMachine Add state machine activity (#7457) 2026-05-18 02:09:03 +02:00
Break.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Complete.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Composite.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Container.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Correlate.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
DynamicActivity.cs Add Bookmark Queue and Restore Background Activity Execution (#5758) 2024-07-15 22:37:14 +02:00
End.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Fault.cs Refactor Fault Propagation and Simplify Bookmark Management (#6545) 2025-04-10 15:01:49 +02:00
Finish.cs Adds ILoggerFactory support to converters (#7153) 2025-12-19 21:54:20 +01:00
For.cs Improves Fork activity and break signal handling (#7104) 2025-11-25 19:29:02 +01:00
ForEach.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ForEachT.cs Addresses warnings and enforces null safety (#7050) 2025-11-12 15:53:23 +01:00
Fork.cs Improves Fork activity and break signal handling (#7104) 2025-11-25 19:29:02 +01:00
If.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Inline.cs Add support for activity output testing (#6529) 2025-03-31 18:10:59 +02:00
NotFoundActivity.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Parallel.cs Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
ParallelForEach.cs Refactor variable initialization for clarity and consistency 2025-03-13 21:05:28 +01:00
ParallelForEachT.cs Add unit and integration tests for ParallelForEach activity covering behavior with different item types, fault handling, and scenario-specific conditions (#7120) 2025-11-27 20:58:58 +01:00
ReadLine.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Sequence.cs Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
SetName.cs Improved support for named workflow instances 2025-03-02 11:17:18 +01:00
SetVariable.cs Update src/modules/Elsa.Workflows.Core/Activities/SetVariable.cs 2025-10-09 09:40:01 +02:00
Start.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Switch.cs Fix Switch activity behavior and add testing utilities for RunWorkflowResult and improve (#7151) 2025-12-19 17:05:12 +01:00
While.cs Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
Workflow.cs Implement multitenant HTTP routing (#6031) 2024-10-14 21:27:11 +02:00
WriteLine.cs Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00