elsa-core/src/modules/Elsa.Workflows.Core
Sipke Schoorstra e8cd3cded5
Implement Activity Testing API (#6719)
* Adds activity test-run endpoint

Adds an API endpoint to facilitate testing of individual activities within a workflow.

The endpoint allows developers to execute a specific activity within a given workflow definition.

Also ensures latest workflow definition is marked when publishing.

* Enables activity test run to return results

Updates the activity test run endpoint to return activity execution results such as outputs, outcomes, exceptions, and status.

This allows users to inspect the results of test runs for activities, providing valuable insights into their behavior.

* Add activity testing API integration and activity test UI support

Introduced `ITestsApi` and supporting models for activity testing in workflows. Updated the UI to support triggering and displaying activity test results, including handling outcomes, outputs, exceptions, and status. Additionally, updated dependency injection for the new API and adjusted the project references.

* Refactor workflow test endpoints and update method parameters

Updated the namespace and route for activity test endpoints from `TestRun` to `Tests/Activities`. Adjusted default parameter values in `WorkflowDefinitionHandle` method for improved consistency.

* Introduce `ActivityTestRunner` to streamline activity testing

Adds a new `IActivityTestRunner` interface and its implementation, simplifying the execution of individual workflow activities for testing purposes. Updates dependencies and refactors activity test endpoints to use the new service.

* Update `ActivityTestRunner` to support variable test values

Enhanced the `ActivityTestRunner` to include functionality for injecting test-specific variable values when executing workflow activities. Added a helper method `GetVariableTestValues` to retrieve and deserialize test variable data from custom properties.

* Update `Tests/Activities` endpoint to include `ActivityState`

Refactored the response model to replace `Outcomes` with `ActivityState` and `Payload`, ensuring more detailed activity execution results.

* Add draft saving and saved notifications for workflow definitions

* Add draft saving notification handling in cache evictions

Integrates handling for `WorkflowDefinitionDraftSaving` and `WorkflowDefinitionDraftSaved` events within the workflow cache eviction service, ensuring definitions are properly evicted.

* Refactor `ConfigureLiquidEngine` to simplify variable enumeration logic

* Remove redundant `<returns>` tag from `ByDefinitionVersionId` method XML documentation

* Refactor `Tests/Activities` endpoint documentation and constructor

Updated XML documentation to clarify endpoint responsibilities and adjusted constructor by removing an unused dependency (`IIdentityGenerator`).
2025-06-23 10:03:10 +02:00
..
Abstractions Merge remote-tracking branch 'origin/develop/3.5.0' 2025-06-01 18:19:32 +02:00
ActivationValidators
Activities Replace default! with null! for better nullability safety 2025-05-25 19:26:38 +02:00
Attributes Add migration files for database schema V3.4 2025-02-22 20:48:56 +01:00
Behaviors Update project files and dependencies to resolve Build issues. 2025-06-01 15:57:42 +01:00
Builders Refactor variable initialization for clarity and consistency 2025-03-13 21:05:28 +01:00
CommitStates Remove default commit strategy (#6599) 2025-04-18 09:26:29 +02:00
Constants
Contexts Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Contracts Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Enums Refactor activity execution state tracking 2025-02-22 19:45:44 +01:00
Exceptions
Expressions
Extensions Merge remote-tracking branch 'origin/rc/3.4.0' into develop/3.5.0 2025-04-28 19:06:20 +02:00
Features Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Handlers Remove obsolete properties and refactor activity evaluation (#6603) 2025-04-18 16:21:25 +02:00
Helpers
IncidentStrategies
LogPersistence
Memory Merge branch 'rc/3.4.0' 2025-04-01 10:23:04 +02:00
Middleware Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Models Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Notifications Add ActivityCompleted notification for workflow activity completion (#6675) 2025-05-24 23:01:41 +02:00
Options Add support for passing initial variables 2025-03-08 11:47:58 +01:00
Pipelines
PortResolvers
Serialization Add FuncExpressionValueConverter for JSON serialization (#6607) 2025-04-28 19:01:16 +02:00
Services Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
Signals
State Adds activity execution metadata support (#6699) 2025-05-30 15:37:57 +02:00
UIHints Refactor checklists and radio lists to use records 2025-06-06 00:13:35 +01:00
VariableStorageDrivers Add strict type checking for variable parsing (#6536) 2025-03-31 18:11:14 +02:00
Elsa.Workflows.Core.csproj
Elsa.Workflows.Core.csproj.DotSettings Refactor commit strategy architecture for flexibility. 2025-01-30 15:14:58 +01:00
FodyWeavers.xml
IsExternalInit.cs