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);