From 16452795b0406322bd135ee1f71fd30ea7ecbbe3 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 21 May 2023 10:16:25 +0200 Subject: [PATCH] Change workflow runtime trigger options record into class --- .../Contracts/IWorkflowRuntime.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowRuntime.cs b/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowRuntime.cs index 6babb5e06..77f8b4144 100644 --- a/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowRuntime.cs +++ b/src/modules/Elsa.Workflows.Runtime/Contracts/IWorkflowRuntime.cs @@ -118,7 +118,19 @@ public record ResumeWorkflowRuntimeOptions( public record CanStartWorkflowResult(string? InstanceId, bool CanStart); -public record TriggerWorkflowsRuntimeOptions(string? CorrelationId = default, string? WorkflowInstanceId = default, IDictionary? Input = default); +public class TriggerWorkflowsRuntimeOptions +{ + public TriggerWorkflowsRuntimeOptions(string? CorrelationId = default, string? WorkflowInstanceId = default, IDictionary? Input = default) + { + this.CorrelationId = CorrelationId; + this.WorkflowInstanceId = WorkflowInstanceId; + this.Input = Input; + } + + public string? CorrelationId { get; set; } + public string? WorkflowInstanceId { get; set; } + public IDictionary? Input { get; set; } +} public record TriggerWorkflowsResult(ICollection TriggeredWorkflows);