From 7b5aa6073dc0d401203eca86952e6107085db3e2 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 13 Feb 2025 23:39:56 +0100 Subject: [PATCH] Add support for content item-backed workflow definitions Introduced a `ContentItemWorkflowDefinitionStore` and related mappers, extensions, and index updates to manage workflow definitions as content items. Refactored the system to replace existing handlers with a store-based approach and optimized querying and mapping workflows. --- src/modules/Elsa.Common/Entities/OrderDefinition.cs | 2 +- .../Models/WorkflowDefinitionSummary.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/Elsa.Common/Entities/OrderDefinition.cs b/src/modules/Elsa.Common/Entities/OrderDefinition.cs index 5d1f1ed82..99108ec84 100644 --- a/src/modules/Elsa.Common/Entities/OrderDefinition.cs +++ b/src/modules/Elsa.Common/Entities/OrderDefinition.cs @@ -31,5 +31,5 @@ public class OrderDefinition /// /// The key selector to use to order the results. /// - public Expression> KeySelector { get; set; } = default!; + public Expression> KeySelector { get; set; } = null!; } \ No newline at end of file diff --git a/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionSummary.cs b/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionSummary.cs index 718cdd7e7..2f8a71a45 100644 --- a/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionSummary.cs +++ b/src/modules/Elsa.Workflows.Management/Models/WorkflowDefinitionSummary.cs @@ -51,12 +51,12 @@ public class WorkflowDefinitionSummary /// /// The version ID of the workflow definition. /// - public string Id { get; set; } = default!; + public string Id { get; set; } = null!; /// /// The ID of the workflow definition. /// - public string DefinitionId { get; set; } = default!; + public string DefinitionId { get; set; } = null!; /// /// The name of the workflow definition. @@ -96,7 +96,7 @@ public class WorkflowDefinitionSummary /// /// The materializer name of the workflow definition. /// - public string MaterializerName { get; set; } = default!; + public string MaterializerName { get; set; } = null!; /// /// The timestamp when the workflow definition was created.