elsa-core/src/modules/Elsa.Workflows.Core
Sipke Schoorstra 3340e14b74
Improves Fork activity and break signal handling (#7104)
* Add unit and integration tests for `Container` activity, covering behavior such as variable scoping, child activity execution, and mixed variable types.

* Refactor `RunWorkflowAndCaptureOutput` method in `ContainerTests` for better code organization

* Move `Sequence` activity tests to a dedicated namespace and add new unit and integration tests for enhanced coverage.

- Deleted outdated `SequenceTests` and related workflows.
- Introduced `SequenceActivity` namespace with improved organization.
- Added comprehensive unit and integration test coverage for sequential execution, nested sequences, conditional breaking, variables, and dynamic activities.

* Relocate `SequenceActivity` tests to `Activities` namespace to improve organization and update references in related test classes.

* Refactor `SequenceTests` to move `DynamicSequenceWorkflow` to its own file for better test organization.

* Extract `TestContainer` to `Elsa.Testing.Shared.Activities` for reuse across test projects.

* Add unit and integration tests for `Break` activity; refactor workflow tests for improved organization

- Introduced `BreakInForkWorkflow` and deprecated `BreakWhileForkWorkflow`.
- Added `BreakTests` unit tests to validate behavior of the `Break` activity, including terminal node implementation and execution completion.
- Enhanced integration tests for `Break` activity, covering multiple looping constructs (`ForEach`, `For`, `While`, `Fork`) and nested workflows.
- Updated `Fork` activity to handle the `BreakSignal` asynchronously.
- Simplified workflow definitions by removing redundant constructors and using concise variable initialization syntax.
- Improved test clarity with better organization, comments, and consistent naming conventions.

* Refactor `Fork` activity tests and workflows for improved organization and coverage

- Relocated `BasicForkWorkflow` and `JoinAnyForkWorkflow` to `Fork/Workflows` namespace.
- Introduced `EmptyForkWorkflow` to test Fork behavior with no branches.
- Enhanced `ForkTests` with scenarios for `Fork` execution with different join modes and branch configurations.
- Refactored `Fork` activity to handle empty branches and simplified `BreakSignal` handling.
- Improved consistency and clarity of test cases, including better assertions and comments.

* Update test/integration/Elsa.Workflows.IntegrationTests/Activities/Break/BreakTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/integration/Elsa.Workflows.IntegrationTests/Activities/Break/BreakTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/integration/Elsa.Workflows.IntegrationTests/Activities/Break/BreakTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/integration/Elsa.Workflows.IntegrationTests/Activities/Fork/ForkTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update test/integration/Elsa.Workflows.IntegrationTests/Activities/Fork/ForkTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update GitHub Actions workflow to use .NET 10.x

* Remove outdated GitHub workflows and update configurations to .NET 10.x

* Remove unused result variable assignments in integration tests (#7105)

* Initial plan

* Remove unused result variable assignments in BreakTests and ForkTests

Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
2025-11-25 19:29:02 +01:00
..
Abstractions Improving behaviour of Run Asynchronously property for the TaskActivityAttribute 2025-08-05 13:50:35 +02:00
ActivationValidators
Activities Improves Fork activity and break signal handling (#7104) 2025-11-25 19:29:02 +01:00
Attributes Merge 3.5.1 into 3.6.0 (#6907) 2025-09-13 13:05:52 +02:00
Behaviors Refactor activity execution record capturing (#6836) 2025-08-04 08:44:42 +02:00
Builders Addresses warnings and enforces null safety (#7051) 2025-11-12 16:56:31 +01:00
CommitStates Remove default commit strategy (#6599) 2025-04-18 09:26:29 +02:00
Constants
Contexts Addresses warnings and enforces null safety (#7051) 2025-11-12 16:56:31 +01:00
Contracts Addresses warnings and enforces null safety (#7050) 2025-11-12 15:53:23 +01:00
Enums
Exceptions Throw InputEvaluationException for input evaluation errors 2025-09-16 20:37:05 +02:00
Expressions Retranslating comment in english (#6910) 2025-09-15 18:49:11 +02:00
Extensions Refactors extension methods to instance methods (#7089) 2025-11-25 14:53:18 +01:00
Features Feat/unit test coverage sendhttprequest (#6961) 2025-10-20 20:11:46 +02:00
Handlers Remove obsolete properties and refactor activity evaluation (#6603) 2025-04-18 16:21:25 +02:00
Helpers
IncidentStrategies
LogPersistence
Memory
Middleware Addresses warnings and enforces null safety (#7051) 2025-11-12 16:56:31 +01:00
Models Addresses warnings and enforces null safety (#7050) 2025-11-12 15:53:23 +01:00
Notifications Refactor activity execution record capturing (#6836) 2025-08-04 08:44:42 +02:00
Options
Pipelines Refactors extension methods to instance methods (#7089) 2025-11-25 14:53:18 +01:00
PortResolvers
Serialization Addresses warnings and enforces null safety (#7051) 2025-11-12 16:56:31 +01:00
Services Feat/unit test coverage sendhttprequest (#6961) 2025-10-20 20:11:46 +02:00
Signals Refactor activity execution record capturing (#6836) 2025-08-04 08:44:42 +02:00
State Adds activity execution metadata support (#6699) 2025-05-30 15:37:57 +02:00
UIHints Addresses warnings and enforces null safety (#7050) 2025-11-12 15:53:23 +01:00
VariableStorageDrivers Addresses warnings and enforces null safety (#7051) 2025-11-12 16:56:31 +01:00
Elsa.Workflows.Core.csproj Upgrade projects to target .NET 10, add conditional System.Linq.Async dependencies for compatibility with earlier frameworks, and update project files for consistency across the solution. (#7062) 2025-11-21 20:55:30 +01:00
Elsa.Workflows.Core.csproj.DotSettings
FodyWeavers.xml
IsExternalInit.cs