elsa-core/src/modules
Sipke Schoorstra f448e9520a
Fix reloading logic for workflow definitions (#5781)
* Add reloading logic for workflow definitions

Introduced a new mechanism to handle reloaded workflow definitions. This includes creating a "ReloadedWorkflowDefinition" model, updating the caching logic, and modifying notification handlers to work with the enhanced workflow reloading logic. This ensures workflow definitions are updated and managed correctly when published, retracted, or deleted.

* Improve RefreshActivityRegistry documentation

Updated the XML documentation to clarify that `RefreshActivityRegistry` refreshes the `IActivityRegistry` for `WorkflowDefinitionActivityProvider` whenever workflow definitions are reloaded, instead of when they are published, retracted, or deleted.

* Add 'materializer' to user dictionary

The term 'materializer' has been added to the user dictionary to improve code spelling and naming consistency. This change ensures that 'materializer' is recognized as a correct term in the codebase.

* Organize test files by adding a 'Workflows' directory

Renamed 'http-workflow.json' to indicate it belongs under 'Workflows'. This improves file organization and clarity within the 'WorkflowDefinitionReload' scenario.

* Add TestWorkflowMaterializer and TestWorkflowProvider

Introduce `TestWorkflowMaterializer` for deserializing workflows from `TestWorkflowProvider`. Added integration of these new components in the `ReloadWorkflowTests` and `WorkflowServer`. Also renamed `RemoveReloadWorkflowTests` to `ReloadWorkflowTests`.

* Rename and expand workflow reload tests

Renamed `RemoveReloadWorkflowTests` to `ReloadWorkflowTests` to better reflect its purpose and expanded with additional test cases. Added tests to verify workflow and activity registry updates after source provider changes and workflow reloads.

* Update copy settings for workflow test scenarios

Reorganized and added 'CopyToOutputDirectory' settings for JSON files in workflow test scenarios. Ensured all necessary files are correctly included and copied during output directory builds to maintain test consistency.
2024-07-17 09:51:45 +02:00
..
Elsa.Alterations Lazy loading of subgraphs (#5643) 2024-06-25 09:21:50 +02:00
Elsa.Alterations.Core Refactor serializer options usage and enhance caching in workflow serialization (#5275) 2024-04-25 11:42:48 +02:00
Elsa.Alterations.MassTransit Add alteration notifications and management (#5097) 2024-03-20 10:58:59 +01:00
Elsa.AzureServiceBus Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.Caching Fix WorkflowActivity to Use Cached Workflow Definitions for Consistent Behavior (#5223) 2024-04-15 10:06:27 +02:00
Elsa.Caching.Distributed Fix WorkflowActivity to Use Cached Workflow Definitions for Consistent Behavior (#5223) 2024-04-15 10:06:27 +02:00
Elsa.Caching.Distributed.MassTransit Fix MT consumer registration when DisableConsumers is set (#5578) 2024-06-12 19:59:39 +02:00
Elsa.Common Add PropertyBag for non-polymorphic data transfer between server and client (#5735) 2024-07-10 10:29:45 +02:00
Elsa.CSharp Add validation before getting workflow in GenerateWorkflowInputAccessors 2024-05-28 23:00:47 +02:00
Elsa.Dapper Overwriting System.Formats.Asn1 due to vulnerability 2024-07-16 15:04:46 +02:00
Elsa.Dapper.Migrations Alterations with Queries (#5032) 2024-03-13 20:34:46 +01:00
Elsa.Dsl Fix naming issues 2024-06-07 14:01:14 +02:00
Elsa.Elasticsearch Update packages (#5286) 2024-04-26 20:07:34 +02:00
Elsa.Email Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.EntityFrameworkCore Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.EntityFrameworkCore.Common Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.EntityFrameworkCore.MySql Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.EntityFrameworkCore.PostgreSql Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.EntityFrameworkCore.Sqlite Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.EntityFrameworkCore.SqlServer Overwriting System.Formats.Asn1 due to vulnerability 2024-07-16 15:04:46 +02:00
Elsa.Environments Remove version number from Elsa.Environments project file 2024-02-12 19:11:18 +01:00
Elsa.Expressions Added aliases for all missing types used in UI (#5743) 2024-07-10 18:38:11 +02:00
Elsa.FileStorage Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Hangfire Implement dispatch channels (#4949) 2024-02-16 10:56:30 +01:00
Elsa.Hosting.Management Add caching to workflow runtime and workflow management stores (#5174) 2024-04-10 11:51:40 +02:00
Elsa.Http Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00
Elsa.Identity Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.JavaScript Add functions to get workflow definition details 2024-07-16 13:55:23 +02:00
Elsa.KeyValues Refactor code and update comments for better readability 2024-02-20 11:26:52 +01:00
Elsa.Labels Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.Liquid Rename FluidFiltersDelegate to ConfigureFilters 2024-04-26 15:52:38 +02:00
Elsa.MassTransit Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00
Elsa.MassTransit.AzureServiceBus Fix subscription name matching in RemoveOrphanedSubscriptions 2024-06-25 09:43:19 +02:00
Elsa.MassTransit.RabbitMq Fix MT consumer registration when DisableConsumers is set (#5578) 2024-06-12 19:59:39 +02:00
Elsa.MongoDb Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.ProtoActor Lazy loading of subgraphs (#5643) 2024-06-25 09:21:50 +02:00
Elsa.ProtoActor.Cluster.AzureContainerApps Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.Python Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00
Elsa.Quartz Update packages (#5286) 2024-04-26 20:07:34 +02:00
Elsa.Quartz.EntityFrameworkCore.MySql Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Quartz.EntityFrameworkCore.PostgreSql Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Quartz.EntityFrameworkCore.Sqlite Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Quartz.EntityFrameworkCore.SqlServer Overwriting System.Formats.Asn1 due to vulnerability 2024-07-16 15:04:46 +02:00
Elsa.SasTokens Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.Scheduling Refactor logging instances in DefaultTriggerScheduler.cs 2024-06-07 14:01:14 +02:00
Elsa.Telnyx Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Webhooks Convert to use Central Package Management 2024-02-04 13:49:54 +02:00
Elsa.WorkflowContexts Add PropertyBag for non-polymorphic data transfer between server and client (#5735) 2024-07-10 10:29:45 +02:00
Elsa.WorkflowProviders.BlobStorage Overwritten System.Text.Json version due to vulnerability 2024-07-16 14:31:20 +02:00
Elsa.Workflows.Api bugfixing issues related to new PropertyBag in workflow definition (#5778) 2024-07-16 14:54:20 +02:00
Elsa.Workflows.Core Add PropertyBag for non-polymorphic data transfer between server and client (#5735) 2024-07-10 10:29:45 +02:00
Elsa.Workflows.Management Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00
Elsa.Workflows.Runtime Fix reloading logic for workflow definitions (#5781) 2024-07-17 09:51:45 +02:00