elsa-core/src/modules/Elsa.Workflows.Management/Contracts
Sipke Schoorstra a0f0a3c2f5
Add workflow export functionality and update changelog (#7357)
* Add `IWorkflowDefinitionExporter` for workflow export functionality

Introduced `IWorkflowDefinitionExporter` interface and its implementation to export workflow definitions as JSON or ZIP archives. Simplified `Export` endpoint logic by utilizing the new exporter service. Updated package version to 3.6.1.

* Remove duplicate `ExportAsync` method from `IWorkflowDefinitionExporter` and its implementation in `WorkflowDefinitionExporter`.

* Remove deprecated test from `WorkflowDefinitionExporterTests`, regression tests are covered in `WorkflowReferenceGraphBuilderTests`.

* Update GitHub Actions workflow to support version 3.6.1 deployment

* Update src/modules/Elsa.Workflows.Management/Services/WorkflowDefinitionExporter.cs

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

* Move `WorkflowDefinitionExporterRegressionTests` to separate test file for clarity

* Add `DefaultFileNameSanitizer` for sanitizing file names and update `WorkflowDefinitionExporter` to use it. Implement unit tests for the sanitizer.

* Update test assertion for exported workflow file name in `WorkflowDefinitionExporterRegressionTests`.

* Simplify file naming in `WorkflowDefinitionExporter` by removing duplicate ID from JSON file names.

* Update test/unit/Elsa.Workflows.Management.UnitTests/Services/DefaultFileNameSanitizerTests.cs

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

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-11 17:20:07 +01:00
..
IActivityRegistryPopulator.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
IFileNameSanitizer.cs Add workflow export functionality and update changelog (#7357) 2026-03-11 17:20:07 +01:00
IHostMethodActivityDescriber.cs Adds activity host registration support (#7172) 2025-12-27 20:52:52 +01:00
IHostMethodParameterValueProvider.cs Adds activity host registration support (#7172) 2025-12-27 20:52:52 +01:00
IWorkflowDefinitionActivityRegistryUpdater.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
IWorkflowDefinitionCacheManager.cs Fix all broken summary xml docs (#6123) 2024-11-18 13:41:27 +01:00
IWorkflowDefinitionExporter.cs Add workflow export functionality and update changelog (#7357) 2026-03-11 17:20:07 +01:00
IWorkflowDefinitionImporter.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
IWorkflowDefinitionManager.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
IWorkflowDefinitionPublisher.cs Add support for reverting workflow definitions to a specific version and refactor WorkflowDefinitionFilter initialization for consistency 2025-10-05 15:08:42 +02:00
IWorkflowDefinitionService.cs Refactor database extensions and support migrations for V3.6 (#6788) 2025-07-14 09:48:22 +02:00
IWorkflowDefinitionStore.cs Refactor database extensions and support migrations for V3.6 (#6788) 2025-07-14 09:48:22 +02:00
IWorkflowInstanceFactory.cs Refactor Workflow Runtimes (#5444) 2024-06-10 19:36:51 +02:00
IWorkflowInstanceManager.cs Incremental work on restoring previous workflow runtime API surface for backward compatibility 2025-01-28 00:11:25 +01:00
IWorkflowInstanceStore.cs Add Workflow Heartbeat Middleware and update methods 2025-02-22 16:05:36 +01:00
IWorkflowInstanceVariableManager.cs Add BulkDispatchWorkflows tests and improve activity coverage (#7026) 2025-11-04 15:44:44 +01:00
IWorkflowMaterializer.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
IWorkflowReferenceGraphBuilder.cs Expose consumers API and recursive export option (#7309) 2026-02-20 17:40:47 +01:00
IWorkflowReferenceQuery.cs Refactor database extensions and support migrations for V3.6 (#6788) 2025-07-14 09:48:22 +02:00
IWorkflowReferenceUpdater.cs Add services and API endpoints to read and write workflow instance variables (#6107) 2024-11-09 17:42:08 +01:00
IWorkflowSerializer.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
IWorkflowValidator.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00