From b496219d15989fa6b4868e6752da9fe42da8cf57 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 13 Jun 2024 07:11:02 +0200 Subject: [PATCH] Add 'Data' category to Workflow Management Feature The 'Data' category has been added to the Workflow Management Feature. This includes support for byte arrays and Stream types, extending the type capabilities of the feature. --- .../Features/WorkflowManagementFeature.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs b/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs index 055e37cf9..cfb45929c 100644 --- a/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs +++ b/src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs @@ -44,6 +44,7 @@ public class WorkflowManagementFeature : FeatureBase private const string PrimitivesCategory = "Primitives"; private const string LookupsCategory = "Lookups"; private const string DynamicCategory = "Dynamic"; + private const string DataCategory = "Data"; private string CompressionAlgorithm { get; set; } = nameof(None); private LogPersistenceMode LogPersistenceMode { get; set; } = LogPersistenceMode.Include; @@ -78,7 +79,9 @@ public class WorkflowManagementFeature : FeatureBase new(typeof(TimeSpan), PrimitivesCategory, "Represents a duration of time."), new(typeof(IDictionary), LookupsCategory, "A dictionary with string key and values."), new(typeof(IDictionary), LookupsCategory, "A dictionary with string key and object values."), - new(typeof(ExpandoObject), DynamicCategory, "A dictionary that can be typed as dynamic to access members using dot notation.") + new(typeof(ExpandoObject), DynamicCategory, "A dictionary that can be typed as dynamic to access members using dot notation."), + new(typeof(byte[]), DataCategory, "A byte array."), + new(typeof(Stream), DataCategory, "A stream.") ]; ///